Commit Graph

18 Commits

Author SHA1 Message Date
Neil Hanlon cc6b6de7a0
Add Rocky Linux to nodepool elements tooling
Change-Id: I2a94a34b1518c90ef5f0d91c9131482520c38c62
2022-02-15 17:31:34 -05:00
wangxiyuan c28cce5d75 Add openEuler disto support for elements
This patch add openEuler disto support for the diskimage-builder
elements in project-config

Change-Id: I7d7804376c4579b550c865a3ad5719fea1ec703b
2021-12-16 09:37:19 +08:00
Andreas Jaeger 398adb791f Bye, Bye, Trusty
This removes trusty from the repo and thus from OpenDev.

Afterwards the AFS volume mirror.wheel.trustyx64 can be deleted.

Depends-On: https://review.opendev.org/702771
Depends-On: https://review.opendev.org/702818
Change-Id: I3fa4c26b0c8aeacf1af76f9046ea98edb2fcdbd0
2020-01-19 16:00:55 +01:00
Monty Taylor 66b12be818 Update nodepool element for disk cache update
Things are in /opt/git/opendev.org/ now

Change-Id: Ib82552520b99ffcf213962e917315b0b82c3f1b0
2019-10-19 05:35:46 +09:00
Colleen Murphy 587b85ba36 Use iptables for openSUSE
In openSUSE Tumbleweed, the SuSEfirewall2 package was removed in favor
of firewalld[1]. This commit updates the openSUSE nodeset to use plain
iptables rather than injecting iptables rules into the SuSEfirewall2
service. This will work on both Tumbleweed and Leap nodesets.

openSUSE provides no iptables-service package the way the RHEL family
does, so we can't fall back to that. Rather than try to convert iptables
rules to firewalld syntax, this change leverages init.d to ensure
iptables rules are loaded at boot. The 89-unbound script has been
coopted for this purpose since it already creates
/etc/init.d/boot.local. Switched from `dd` to `cat` which makes
conditionally composing the file more natural.

[1] https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html

Change-Id: Ia2b72e25078efa68019f1bf7c7a0b77e6ff702fd
2019-09-20 12:05:09 -07:00
Andreas Jaeger 14eb58501b Fix nodepool after OpenDev changes
Fix a couple of places where orgs where renamed so that dib finds the
repos.

Change-Id: Ic52dcffcd9323c12410e05b1a3598911a28cbcaa
2019-04-21 17:05:34 +00:00
Nicolas Hicher e0f471889c Ensure rhel7 image could be build
Add rhel7 distrib in unbound and iptables script for nodepool-base, and
add haveged installation for infra-package-needs to ensure users could
use these elements to build rhel based image.

Change-Id: Ib0ad877369bafab64a1fd25cc331363d771d5753
2018-05-22 14:14:50 -04:00
Matthew Thode 79180bc18f
enable the right iptables services on gentoo
Change-Id: I7e1008aa48a8e42ffdb422e5f26aa7f2aed57cb6
2018-05-14 11:04:56 -05:00
Andreas Jaeger 91400af8ba Good bye jenkins/scripts
We now only have afs-slug.sh in jenkins/scripts/ and it is only
used by nodepool/scripts/configure_mirror.sh. Move the file into the
nodepool/scripts directory and adjust paths.

Remove copying of jenkins/scripts from nodepool, the directory does not
exist anymore.

Remove 89-jenkins-scripts, we don't need it anymore.

Depends-On: https://review.openstack.org/548393
Change-Id: I13cac791d70a2e5bcb0de1ba0adcd79e1b0aee9f
2018-03-05 14:28:42 +01:00
Andreas Jaeger 2c8541a21c Move jenkins/data/bindep-fallback.txt (2/2)
Remove using old location, we can switch now to the new location
everywhere.

Note: We can only merge this after new images are build with the new
location build in.

This needs a recheck once change 1 is in since project-config is
not self-testing. So, we can remove jenkins/data/bindep-fallback.txt in
this change.

Change-Id: I08f23e96defb152946ade1490628f37f0215300d
Depends-On: https://review.openstack.org/543141
Depends-On: https://review.openstack.org/543142
2018-02-20 20:52:47 +01:00
Andreas Jaeger 9863abbc72 Move jenkins/data/bindep-fallback.txt (1/2)
Let's get rid of jenkins in the name and use a new place to place
bindep-fallback.txt in.

Create new nodepool element to copy the file over.

This is a first of two changes for this repo, we also need to update
the few users in bindep and openstack-zuul-jobs before we can remove the
old location.

We can remove jenkins/data/bindep-fallback.txt only in the followup
change since project-config is not self-testing.

Change-Id: I5c94dcbbca25db7dd998bfbccfbb25c1c4342a2b
2018-02-20 20:52:17 +01:00
Matthew Thode 56929e4639
make a gentoo nodepool image
Depends-On: I17202de3016616ce34c8cbead7d0fb047a64e96b

Change-Id: Icf5e7e8bc4f005111cd2492d3c1a2c492b8a7a96
2017-10-18 15:20:11 -05:00
Colleen Murphy ffafa8f773 Add firewall support for opensuse
openSUSE Leap uses its own firewall manager called SuSEfirewall2, which
is capable of loading custom iptables rules. This patch adds the
necessary configuration to tell SuSEfirewall2 where to look for custom
firewall rules so that we can manage openSUSE firewall rules in the same
way we manage firewall rules for other images.

Change-Id: Ifaebda6c7775244668710340831e12aabf9e86bc
2017-04-24 23:24:43 +02:00
Colleen Murphy 97e65e6924 Add iptables rules to nodepool-base element
Instead of managing firewall rules with puppet we can statically copy
them into the image at build time.

Change-Id: I3ee306e46747b77499ff8975cd3d842b09ec2937
2017-04-24 21:57:51 +02:00
Paul Belanger 87d1187bd1
More sudoers permission check to install.d
Because we also check sudoers files in our zuul-worker element, we
need to make sure our permissions are set in install.d not
postinstall.d.

This was also not an issue locally, since our puppet master seems to
chmod 0755 our elements directory on nodepool-builders.

Change-Id: Ibcfd2741263889ef2dce8e04237537a6d83de301
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-17 21:56:25 -04:00
Paul Belanger 113c15ed66 Fix jenkins sudo permissions
I incorrectly left the sudo extension on our jenkin sudo files.
This causes issues when using the sudo command.

Change-Id: I1b1bdc8622c945a75751cedc96f6b78bcf94122d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-18 00:51:02 +00:00
Andreas Jaeger 915f46c541 Do not set permissions for jenkins/*
Change Ie344c9f9f8cc39b102f0147ecffa189e1b83da1e set the permissions of
all executed files in jenkins/scripts, so we do not need to change
permissions anymore jenkins/* - the other directories do not contain
executable content at all.

Thus, remove the extra chmod.

Change-Id: Ib8990c5069a3a05c52aef9741a65ee3e8333ee44
2017-04-11 10:27:25 +02:00
Paul Belanger 0f3a9d73eb
Setup /usr/local/jenkins within nodepool-base element
As we remove our dependency from puppet, we now need to do more things
within DIB.

Change-Id: Iba227cfeb6e7abc2702c12f9186d6f8906d0fe49
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-10 16:49:05 -04:00