Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124713
D6861.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D6861.diff
View Options
diff --git a/site-modules/profile/files/cloud-init/modules.cfg b/site-modules/profile/files/cloud-init/modules.cfg
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/cloud-init/modules.cfg
@@ -0,0 +1,20 @@
+# Managed by Puppet (class profile::cloud-int), changes will be lost.
+
+# The modules that run in the 'init' stage
+cloud_init_modules:
+ - migrator
+ - seed_random
+ - bootcmd
+ - write-files
+ - growpart
+ - resizefs
+ - disk_setup
+ - mounts
+ - set_hostname
+ - update_hostname
+# disable the /etc/hosts content management
+# - update_etc_hosts
+ - ca-certs
+ - rsyslog
+ - users-groups
+ - ssh
diff --git a/site-modules/profile/manifests/cloudinit.pp b/site-modules/profile/manifests/cloudinit.pp
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/manifests/cloudinit.pp
@@ -0,0 +1,21 @@
+# Manage cloudinit configuration
+class profile::cloudinit {
+
+ # external fact installed by terraform
+ if $::cloudinit_enabled {
+ file { '/etc/cloud/cloud.cfg.d/99_modules.cfg':
+ ensure => present,
+ source => 'puppet:///modules/profile/cloud-init/modules.cfg',
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ notify => Service['cloud-init'],
+ }
+
+ service { 'cloud-init':
+ ensure => running,
+ enable => true,
+ }
+ }
+
+}
diff --git a/site-modules/role/manifests/swh_base.pp b/site-modules/role/manifests/swh_base.pp
--- a/site-modules/role/manifests/swh_base.pp
+++ b/site-modules/role/manifests/swh_base.pp
@@ -16,6 +16,7 @@
include profile::megacli
}
+ include profile::cloudinit
include profile::smartmontools
include profile::network
include profile::swh
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 5:48 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221197
Attached To
D6861: cloud-init: disable the /etc/hosts upgrade on boot
Event Timeline
Log In to Comment