73 lines
3.3 KiB
YAML
73 lines
3.3 KiB
YAML
---
|
|
|
|
- hosts: all
|
|
sudo: yes
|
|
tasks:
|
|
- apt: name=python-pip state=absent
|
|
- shell: easy_install pip
|
|
- shell: pip install -U pip
|
|
- shell: pip install -U setuptools
|
|
- shell: pip install httpie
|
|
#- apt: name=python-virtualenv state=present
|
|
#- apt: name=virtualenvwrapper state=present
|
|
- apt: name=ipython state=present
|
|
- apt: name=python-pudb state=present
|
|
#- apt: name=python-pip state=present
|
|
- shell: pip install docker-py==1.1.0
|
|
- shell: pip install python-keystoneclient==1.5.0
|
|
|
|
- apt: name=redis-server state=present
|
|
#- apt: name=python-redis state=present
|
|
- shell: pip install redis
|
|
- lineinfile: dest=/etc/redis/redis.conf regexp='^bind ' line='bind 0.0.0.0'
|
|
- service: name=redis-server state=restarted
|
|
|
|
- apt: name=git state=present
|
|
|
|
- shell: wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb -O /root/puppetlabs-release-trusty.deb
|
|
- shell: dpkg -i /root/puppetlabs-release-trusty.deb
|
|
- shell: apt-get update
|
|
|
|
- apt: name=puppet state=present
|
|
- git: repo=https://github.com/CGenie/hiera-redis dest=/root/hiera-redis
|
|
- shell: gem build hiera-redis.gemspec && gem install hiera-redis-3.0.0.gem chdir=/root/hiera-redis
|
|
- template: src=/vagrant/hiera.yaml dest=/etc/puppet/hiera.yaml
|
|
- file: path=/etc/puppet/hieradata state=directory
|
|
- file: path=/etc/puppetlabs/code/ state=directory
|
|
- file: src=/etc/puppet/hiera.yaml dest=/etc/puppetlabs/code/hiera.yaml state=link
|
|
- apt: name=ruby-dev state=present
|
|
- shell: gem install librarian-puppet
|
|
- file: path=/tmp/puppet-modules/modules state=directory
|
|
- file: path=/tmp/puppet-modules/Puppetfile state=touch
|
|
- file: path=/etc/puppet/modules state=absent
|
|
- file: src=/tmp/puppet-modules/modules dest=/etc/puppet/modules state=link
|
|
|
|
# Setup additional development tools
|
|
- apt: name=vim state=present
|
|
- apt: name=tmux state=present
|
|
- apt: name=htop state=present
|
|
- apt: name=python-mysqldb state=present
|
|
- apt: name=jq state=present
|
|
|
|
# Graph drawing
|
|
#- apt: name=python-matplotlib state=present
|
|
- apt: name=python-pygraphviz state=present
|
|
#- shell: pip install pygraphviz
|
|
|
|
# Setup development env for solar
|
|
- shell: python setup.py develop chdir=/vagrant/solar
|
|
|
|
#- apt: name=ubuntu-cloud-keyring state=present
|
|
#- shell: echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
|
|
#- shell: echo "deb http://osci-mirror-poz.infra.mirantis.net/pkgs/ubuntu-2015-06-25-194717 trusty-updates main" > /etc/apt/sources.list.d/fuel-kilo.list
|
|
#- shell: echo "deb http://osci-mirror-poz.infra.mirantis.net/pkgs/ubuntu-latest trusty main" > /etc/apt/sources.list.d/fuel-kilo.list
|
|
# cloudarchive key
|
|
#- shell: apt-key adv --recv-key --keyserver keyserver.ubuntu.com 5EDB1B62EC4926EA
|
|
# some other keys
|
|
#- shell: apt-key adv --recv-key --keyserver keyserver.ubuntu.com 9D6D8F6BC857C906
|
|
#- shell: apt-key adv --recv-key --keyserver keyserver.ubuntu.com 7638D0442B90D010
|
|
# mirantis poznan
|
|
#- shell: apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5
|
|
#- shell: apt-key adv --recv-key --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
|
|
#- shell: apt-get update
|