From 092a82be1aff36d771d839e9b3d026161018d892 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Wed, 5 Aug 2015 09:56:05 +0200 Subject: [PATCH 1/9] main.yml cleanup --- main.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/main.yml b/main.yml index 00ced16d..34e5d1ee 100644 --- a/main.yml +++ b/main.yml @@ -3,28 +3,25 @@ - hosts: all sudo: yes tasks: + - apt: name=git state=present + - apt: name=python-mock state=present + - apt: name=python-keystoneclient state=present + + # PIP - 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=python-mock 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 - - apt: name=python-keystoneclient state=present + # Redis - 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 - + # Puppet - 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 @@ -49,11 +46,16 @@ - shell: gem install librarian-puppet --no-ri --no-rdoc # 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 + - name: Additional development tools + apt: name={{ item }} state=present + with_items: + - vim + - tmux + - htop + - python-mysqldb + - jq + - ipython + - python-pudb # Graph drawing #- apt: name=python-matplotlib state=present @@ -63,6 +65,7 @@ # Setup development env for solar - shell: python setup.py develop chdir=/vagrant/solar + # Ubuntu OpenStack packages #- 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 From 79d91f5be2edc088ac668d9b75c85ec09523d320 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Thu, 6 Aug 2015 10:57:48 +0200 Subject: [PATCH 2/9] Solar bootstarpping playbooks & packer.io guide --- .gitignore | 4 ++ Vagrantfile | 25 +++++------- bootstrap/README.md | 20 +++++++++ bootstrap/build-image.yml | 8 ++++ bootstrap/packer.yml | 12 ++++++ bootstrap/playbooks/base.yml | 56 ++++++++++++++++++++++++++ bootstrap/playbooks/build-main.yml | 10 +++++ bootstrap/playbooks/celery.yml | 20 +++++++++ bootstrap/playbooks/cinder.yml | 11 +++++ bootstrap/playbooks/custom-configs.yml | 7 ++++ bootstrap/playbooks/docker.yml | 7 ++++ bootstrap/playbooks/files/hiera.yaml | 15 +++++++ bootstrap/playbooks/puppet.yml | 24 +++++++++++ bootstrap/playbooks/solar.yml | 7 ++++ bootstrap/solar-master.json | 28 +++++++++++++ 15 files changed, 238 insertions(+), 16 deletions(-) create mode 100644 bootstrap/README.md create mode 100644 bootstrap/build-image.yml create mode 100644 bootstrap/packer.yml create mode 100644 bootstrap/playbooks/base.yml create mode 100644 bootstrap/playbooks/build-main.yml create mode 100644 bootstrap/playbooks/celery.yml create mode 100644 bootstrap/playbooks/cinder.yml create mode 100644 bootstrap/playbooks/custom-configs.yml create mode 100644 bootstrap/playbooks/docker.yml create mode 100644 bootstrap/playbooks/files/hiera.yaml create mode 100644 bootstrap/playbooks/puppet.yml create mode 100644 bootstrap/playbooks/solar.yml create mode 100644 bootstrap/solar-master.json diff --git a/.gitignore b/.gitignore index 18550fc1..1d9f0c69 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,7 @@ celery*.log *.dot *.png resources_compiled.py + +# bootstrap +bootstrap/trusty64 +bootstrap/solar-master.box diff --git a/Vagrantfile b/Vagrantfile index 539766f9..bac27f72 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,38 +5,31 @@ VAGRANTFILE_API_VERSION = "2" SLAVES_COUNT = 2 -init_script = <