Disable cloud-init, if installed

Cloud-init is changing our hostname on servers when we reboot. Stop
this from happening by disabling it.

Change-Id: Ia825a7823d7099870885636e0adb4134c5568715
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-09-21 11:03:55 -04:00
parent 59c3cc085b
commit 92d89a3d8a
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -313,4 +313,12 @@ class openstack_project::server (
}
}
# Disable cloud-init
file { '/etc/cloud':
ensure => directory,
}
file { '/etc/cloud/cloud-init.disabled':
ensure => file,
require => File['/etc/cloud'],
}
}