Commit Graph

27 Commits

Author SHA1 Message Date
Colleen Murphy 0d55fc765d Stop installing and running puppet in node builds
Move non-puppet-related parts of the puppet element into other elements,
remove the puppet element, and stop running the prepare-node script.

\o/

Change-Id: Ib241ea976ca0a3d661599f36e3f5a2d4eb023c08
2017-04-27 23:23:32 +02:00
Colleen Murphy be7e4e9a35 Remove install_resolv_conf from dib puppet script
This parameter is used for the unbound class, but we moved that class
out of openstack_project::template class and started managing unbound
here in the project-config dib elements, so we don't need to keep using
it and leaving it unset will not change any behavior.

Change-Id: I2ed1610dbfdc131943c64745e79da75133bf6818
2017-04-21 21:19:39 +02:00
Jenkins a45390bb65 Merge "Stop allowing install_users for zuul workers" 2017-04-19 17:28:50 +00:00
Colleen Murphy 8eac3b76fe Stop allowing install_users for zuul workers
Rooters' keyste are now managed with configdrive and we don't want to
have to manage users with puppet any more, so let's clean up this code.

Change-Id: Ifcca38a0754e4a76d36c4819e3fd7370256ade71
2017-04-19 17:45:32 +02:00
Colleen Murphy 3c42a853d6 Remove unused params in puppet builds
We always want zuul workers to be thin, it doesn't need to be
configurable. We made these parameters nonfunctional in the
single_use_slave class[1] so we can stop using them here.

[1] https://review.openstack.org/#/c/449958/

Change-Id: I78cf0f86cc162439303c85b3c6cc5fb8d0fd0493
2017-04-12 20:39:50 +02:00
Paul Belanger 88ae2001b0
Stop installing pip from install_puppet.sh
Now that we are depending on the pip-and-virtualenv element, we can
stop doing this from our install_puppet.sh script.

Change-Id: I7be690633790574d097458c52ecda8985dbdadde
Depends-On: Ie110fd50750ffc48c1ed939b18b68e40af6331ee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-10 14:04:18 -04:00
Dirk Mueller f694c91bcb Update nodepool elements for openSUSE Leap 42.2
stackviz: In general newer openSUSE distributions switched to nodejs6 LTS,
but Leap 42.2 is still on 4.x.

zuul-worker: No need for libselinux enablement in openSUSE

puppet: cleanup the puppet repo that got added in the install_puppet.sh
code part

Change-Id: If7bf3c799ebb74aeb36c4b1b607b0454993f0ed6
2017-02-28 10:54:53 +01:00
Isaac Beckman 56ad977654 safe override of /etc/resolv.conf
No need to override /etc/resolv.conf if "NODEPOOL_STATIC_NAMESERVER_V4"
enviroment variable is not set.

Change-Id: Idf74d394f5a025b885b830d3afdcbad12655101a
2016-11-07 17:00:03 +02:00
Matthew Thode 9231f9b57d
Add Gentoo support to nodepool
This commit adds Gentoo support to elements needed to build a Gentoo
nodepool image.  The previous version of this commit had the default
section of the pkg-map in the wrong area, specifically in the following
file.

nodepool/elements/infra-package-needs/pkg-map

Change-Id: Ic686c325bc06564585a2e3ac50cadd7556612333
2016-10-16 20:37:14 -05:00
Paul Belanger 510faf0bde Revert "Add Gentoo support to nodepool"
Our images have failed to build for the last 3 days, reverting until we can debug.

This reverts commit 4c515e2073.

Change-Id: I2e653bcd8a30a85ea46a9861bdf9f95413a76f64
2016-10-13 21:39:04 +00:00
Matthew Thode 4c515e2073
Add Gentoo support to nodepool
This commit adds Gentoo support to elements needed to build a Gentoo
nodepool image.

Change-Id: I2ceeb915748a11d8e729069566e722a3fe30ba99
Signed-off-by: Matthew Thode <mthode@mthode.org>
2016-10-03 10:24:44 -05:00
Paul Belanger 3023cc4d79
Add IPv6 DNS support
Now that osic-cloud1 is only using IPv6 public IPs, we can also add
IPv6 support for unbound.

Change-Id: I9da5a06fdbea04b322cddf6c7e6e829e47492d4c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-15 12:58:28 -04:00
Ian Wienand 8154680e6a Don't clear-out all repos in puppet cleanup
dib 1.17.0 includes fixes for debian-minimal to work with the
apt-sources element in I69dbaa34be3db3d667e6bd8450ef4ce04a751c70

This moved to having the base repos split out from the usual
/etc/apt/sources.list into separate files in /etc/apt/sources.list.d

Unfortunately, this puppet module does the cleanup by glob removal of
everything in that directory, which is a bit unsafe.

I've refactored this slightly so that, like the RedHat path, we only
remove the puppetlabs repos files.

Change-Id: I5bcd8880a90d238b77aaacfd1eaf0a720552c7ee
2016-06-09 10:27:34 +10:00
Igor Belikov e57fe8bdf7 Add curl package to puppet nodepool element
puppet element calls install_puppet.sh script from system-config repo,
which depends on either curl or wget being installed in the system. Some
minimal images like debian jessie or ubuntu xenial miss those packages
and cause puppet element to fail when building the image.

Change-Id: Ic5124906b19b82d134a611e68fc7c5dd6fc88702
2016-03-16 16:18:30 +03:00
Clark Boylan bffc38d470 Install puppet using build_git system-config
When running disk image builder use the build specific checkout of
system-config to install puppet and puppet modules. This allows for easy
local testing of changes to those scripts. Without it master is always
used.

Change-Id: Ifc86d77f702633d630adc1ee619f58607cb56c82
2015-12-08 13:43:47 -08:00
Ian Wienand 90c53a8ded diskimage-builder element cleanups for dib-lint
Since I6c5a962260741dcf6f89da9a33b96372a719b7b0 dib has had a
standardised method for ensuring consistency of tracing and error
detection.  Bring the tracing for these elements up to that standard,
but maintain the status-quo of flags such as "-e" and "pipefail" by
adding ignore flags where appropriate (we can update these separately
to avoid breakage)

Other minor changes are alphabetical-ordering in the element-deps
files and permissions on prepare-node script

With this, "tox -edib" passes

Change-Id: Ibba1dadb9e819f94294c9d583b83ff698252f93f
2015-10-08 11:33:03 +11:00
Paul Belanger ebdd2553d0 Remove color output from puppet apply
This help when reading log files from nodepool. Otherwise we see the
following in the log files:

  [1;31mWarning: Config file /etc/puppet/hiera.yaml not found, using
  Hiera defaults[0m

Change-Id: I3a865e5107e2749ed44c144539af49e311e0125f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 15:38:35 -04:00
Steve Kowalik 85a0f4f44f Switch to using $() for subshells, part 1
Cleanup every use of `` for subshells in the nodepool and tools
directory , replacing them with $(), and finally making the scripts
consistent.

Change-Id: I2b05cd20f9c9a30ab88f8db235aa81da93b1fad3
2015-06-04 15:30:55 +10:00
Monty Taylor 6113b274e4 Revert "Remove ssh host keys during image build"
This reverts commit 1c04bff0d6.

Change-Id: I097b1cbeed3beedec3f64260676641244b22a2ea
2015-03-20 12:47:10 -04:00
Monty Taylor 1c04bff0d6 Remove ssh host keys during image build
If we're going to remove cloud-init, then we need to make sure we don't
bake in ssh host keys.

Change-Id: Id67934924053cce77b440ddb521112fe1f96e76a
2015-03-19 13:13:30 -04:00
Jenkins bae9ecaccc Merge "Support custom static nameserver during build" 2015-03-11 19:02:23 +00:00
Gregory Haynes f504d47200 Support custom static nameserver during build
We statically set 8.8.8.8 for a dns resolver in prepare-node. Allow
setting a custom nameserver.

Change-Id: I888c4bcefdf36ad7064d66b6a1e75d996b93b375
2015-02-26 17:28:41 -08:00
Gregory Haynes 20891096e0 Respect NODEPOOL_SSH_KEY in prepare-node for dib
We dont respect this parameter when building dib images.

Change-Id: I403b59f150d11bfa01875a89de777023c15d2e71
2015-02-19 10:43:39 -08:00
Jeremy Stanley 90e3c200bd Stop using py3k-precise nodes
These are no longer being used to run jobs, so clean up references
to them.

Change-Id: Iac7ffde66a2d5d1a1361ed9bcadb9144e034f10f
Depends-On: I40d5d09f28ef53583d239d2e852e9c50b5962cf8
2015-01-30 23:47:30 +00:00
Jeremy Stanley 83a1658a04 Stop defaulting node builds to Puppet 2
We're done with the Puppet 2-to-3 migration, so we no longer need to
explicitly override the puppet version to 2 when bootstrapping.

Change-Id: Ib04e8dda5050ae0138fba248ff28f35819fdf254
2014-12-12 15:24:01 +00:00
Anita Kuno 1cefee6026 Rename config => system-config for nodepool
We are renaming openstack-infra/config to
openstack-infra/system-config. This patch edits paths for
nodepool.

Change-Id: I75de3128e9d179b700df465726ed057439e5401e
2014-10-17 21:28:44 +00:00
Anita Kuno 1d21cd635f Reorganizes project-config
This repo was created from filter branching the openstack-infra/
config repo. This process brought a lot of cruft with it in the
form of directories that we no longer need. This patch removes
that cruft so we begin with a tidier repo.

Change-Id: Ibffad1b11c0c5f84eedfb0365369f60c4961a0f3
2014-09-25 11:41:04 -04:00