Commit Graph

13 Commits

Author SHA1 Message Date
Steve Baker 44abab621f Delete unused elements
delorean-repo:
replaced by tripleo-repos and other repo setup approaches

hosts:
heat hasn't manage hosts file for many releases

localboot:
replaced by diskimage-builder grub2, bootloader elements

ntp:
replaced by installing chrony package

os-net-config:
the package is installed by other elements, and the script is now
called from ansible

overcloud-dracut:
replaced by diskimage-builder dracut-regenerate element

overcloud-partition:
no image now uses this, overcloud-hardened-uefi-full uses
overcloud-partition-uefi

Change-Id: I990493b51d87a40140c1648f2b04c982ce959b1d
2022-07-04 16:22:58 +12:00
David Vallee Delisle 5ed09ac4e7 Removing debug output of 51-hosts
This floods the logs for no real value added.

Change-Id: I88eb15289415ccb227365bd3ddfed024469106e2
Closes-bug: #1872528
2020-04-13 15:23:08 -04:00
Alex Schultz d51d61a247 Fix line comparisons
There was a leading \n and a trailing \n that is causing the script to
add two lines everytime it's run.

Change-Id: I42530b64efc8e7be0d309401c284f16050256e8a
2019-08-06 15:47:11 -06:00
Martin André f283d70a10 Restore elements still in use
This partially reverts commit c653eaee1c
that was a bit too aggressived and removed elements still in use by the
gate-tripleo-buildimage-overcloud-full-centos-7 CI job.

[1] http://logs.openstack.org/73/455373/1/check/gate-tripleo-buildimage-overcloud-full-centos-7/a7f385b/console.html#_2017-04-13_06_18_00_002828

Change-Id: I98b31f039b144357b00c0c8f64bead033804ce8f
2017-04-13 11:13:57 +02:00
Steven Hardy c653eaee1c Remove unused elements
Most elements in this repo are old, untested and no longer used, so
remove all those we're not using (as proven via CI).

I think there are some remaining things we build into the images but no
longer need, but those can be handled via follow-up patches.

Change-Id: I221c5a3f82a2500c90646fc69439a210cf64e5e1
2017-04-12 13:21:03 +00:00
Kambiz Aghaiepour 7e5e4dc029 51-hosts fails if given lots of changes
The issue is how awk is used to update hosts files.  When
os-apply-config produces sufficiently large amounts of lines
to be added (or ensure in) hosts files, awk will error out.
To work around it, instead use sed, and reconstruct the
host file(s) to ensure the entries between the comment delimeters
of "# HEAT_HOSTS_START" and "# HEAT_HOSTS_END" are swapped with
the new entries.

Also get rid of blank lines produced by os-apply-config

Partial-Bug: #1674732
Change-Id: Ibe0a9f6ec10d55750e3b0e16301236141f988d69
2017-03-24 10:29:57 +00:00
Matthew Flusche 8692ae9caf Fix tr syntax in 51-hosts
Add single quotes to avoid shell expansion

Closes-Bug: 1633523
Change-Id: I9d586c867077909b5df8dc0fbf09e581f2e4ce16
2016-10-14 15:29:40 +00:00
Jiri Stransky b85d8d69a0 Downcase /etc/hosts entries
The entries received from Heat are based on Heat names of
OS::Nova::Server resources, which can contain uppercase letters. However
the hostnames set by Nova are lowercase. This can make the actual
hostname differ from entries in /etc/hosts, which can make the output of
`hostname -f` differ from `facter fqdn`, which can cause failed Puppet
runs.

This patch makes sure that the /etc/hosts entries that Heat adds are
lowercase.

Change-Id: Iec5b6450c5730c081c8f2ca4d6c9786b956c87d5
Partial-Bug: #1447497
2015-04-24 13:26:26 +02:00
Giulio Fidente 43f85d61f0 Update correct cloud-init hosts template file on RHEL.
Change-Id: I922da49a72cd376df7f87beae6372bbdd1717fd9
2015-01-21 19:14:19 +01:00
James Slagle 6bb2bab564 Fix diff return code in hosts element
diff exits non-zero when a diff actually exists. This causes 51-hosts to
exit and fails the os-refresh-config run. This issue is manifested when
doing a stack-update and a new host is added to the stack.

Closes-Bug: #1355646

Change-Id: Ia0e3670960b4b136fda9b09c188baf1f23d45d6b
2014-08-18 18:40:10 -04:00
Endre Karlson 48a519da61 Hosts element: Use 'markers' for updating hosts
This should prevent writing duplicates to /etc/hosts and also
preserve the entries when cloudinit runs on reboot since they are
present in /etc/cloud/templates/hosts.tmpl.

Closes-Bug: #1333649

Change-Id: Icabdb423b16eb143a5ab6f62084d01e8fd4ac384
2014-08-05 15:26:45 +02:00
Richard Su a7b223aaa2 Fix /etc/hosts SELinux file context
/etc/hosts is modified and ends up having the wrong SELinux file
context. Run restorecon to correct it.

Change-Id: I07da602db49b0f122a86a95b5dc5d294fc95ce5c
Closes-Bug: 1344417
2014-07-19 23:28:59 -07:00
Robert Collins b7e470d212 Permit injecting entries into /etc/hosts.
We need this for the test-environment machines.

Change-Id: I499607a26e6282a9f37b91989fe6c1821d0cca9d
2014-02-05 13:49:48 +13:00