Move resolv.conf to nailgun host role, dnsmasq.upstream to cobbler

This reverses some previously hardcoded
values for resolv.conf and dnsmasq.upstream
where they had assumed values during OS
installation. DHCP hooks are moved back
to the nailgun::host role so that when the
host gets a DHCP lease, it does not
overwrite /etc/resolv.conf

blueprint fuel-containerizatoin-of-services

Change-Id: I30bc2b5590530fbdf51059b11434ffcdd8b5f3de
Add ssh keys host-volume for ostf container

OSTF container needs ssh-keys to be able to login into controller
node via ssh.

Change-Id: I18476ab022d0c9da04937eb39ef9e9116d7618ac
Make db-sync and package import conditional

Move code to initial db-sync and package import under 'if' block
  to be executed only on primary controller node.

Closes-bug: 1314085

Change-Id: Iaf51ffbd7e50969da418067ed39e3915fe91834a
Fix collectors and dependencies for ostf-init and Postgre::Db

* Put Exec[ostf-init] after its definition instead of before
* Use -> instead of before/require (should not be used ot once)
* Fix case 'dev' logic by moving collection to the appropriate place

Closes-bug: #1314165

Change-Id: Ib1b4f14bd24594c6a506450c436baf64ff39b74d
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Merge "Move resolv.conf to nailgun host role, dnsmasq.upstream to cobbler"
Repair mysql root password configuration

I had to move mysql login and password to /etc/my.cnf
because mysql client could not get passsword from
~.my.cnf when ran by Puppet for some reason.

There is also a separate class mysql::password to
create this file for both plain mysql setup and Galera

Change-Id: I9a9f2a2f479ee7c4b9457329856eabffb1d2b169
Closes-bug: 1297848
Split pre_hooks into setup and start sections

(pre|post)_hooks now is (pre|post)_setup_hooks
added (pre|post)_start_hooks to run every time
dockerctl start $container is called
Also added service iptables save to cobbler hook

blueprint fuel-containerization-of-services
Closes-Bug: #1314128
Change-Id: I0bff98d424d4aac09aeb1dc565b17776770e0297
Add cobbler and astute volumes for diagnostic snapshot

/etc/cobbler and /etc/astute are necessary for
diagnostic snapshot gathering.

blueprint fuel-containerization-of-services

Change-Id: I99be2c2ff9a3858ce96cdce48b89a6927e75c768
Merge "Fix collectors and dependencies for ostf-init and Postgre::Db"
Merge "Repair mysql root password configuration"
Fix supervisor config for rsync container

Fix command parameter in supervisor config for rsync

Change-Id: Ic957a7e6135fb3a0c4dde622047b14e99ff16732
Merge "Make db-sync and package import conditional"
Improve reliability of OSTF init hook

OSTF initialization hook will retry every
5 seconds for 250 seconds to try to set
up its database instead of trying once
and silently failing.

Change-Id: I1f8c25e20c19fcbb8356bb4db94083ce13aa2dcf
Closes-Bug: #1314634
Add retries to nailgun syncdb for docker deployment

Nailgun sometimes fails because postgres is
not ready yet when nailgun container starts.

blueprint fuel-containerization-of-services

Change-Id: I4b05effdefe5eded3d6ca43bda145ff4e67e3f6c
Fix ordering between galera and mysql password

Put mysql password between galera's anchors and
after wait-for-synced-state exec.

Change-Id: Ie0d802e1115fec08eab5bf6661243579d81629cd
Closes-Bug: 1297848
Merge "Add retries to nailgun syncdb for docker deployment"
Merge "Improve reliability of OSTF init hook"
Merge "Add cobbler and astute volumes for diagnostic snapshot"
Add missing RabbitMQ ha-all policy

ha-all policy for RabbitMQ 3 was lost 8002e7e so we need to add it back

Change-Id: I02a0eded3c0a607881d12653464980f42aba1d68
closes-bug: #1315211
Specify report interval for neutron configuration

Set report interval to 5 seconds which is 3 times
lower than agent_down_time or it may lead to
agent status flapping and neutron server not
communicating with agents

Change-Id: I65dc90df6ea331de624f50ff5da97c46a881b06a
Closes-Bug: #1315338