Commit Graph

20 Commits

Author SHA1 Message Date
Clark Boylan 41a3cc927d Check if project_config_ref is defined before using it
This checks if the $::project_config_ref fact is defined before
accessing it. Puppet 4 seems to care about his more than puppet 3 so we
are only just notcing this now.

Note that this fix relies on puppet boolean operator 'and' short
circuiting which I'm not entirely sure if it does yet.

Change-Id: I2b89ac146609f9c3b22c05814b85c646f74b393a
2019-03-05 14:51:37 -08:00
Paul Belanger 8310d56085
Use ::fqdn for nodepoolv3 yaml file
What we really want to the fqdn, since that is how we store the
filename in project-config.

Change-Id: Ie1337ce233bc7f270acfcdab7632326d412b05e5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-21 11:12:20 -04:00
Paul Belanger 4a95622eae
Update nodepool_config_file_zuulv3 to use hostname
Switch to use hostname to find the nodepoolv3 configuration file from
project-config.

Change-Id: I7c8d37c747083cc34c5ed9632be002ed0c6f4b9b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-15 15:28:24 -04:00
Paul Belanger 4c13e1a4eb Create $zuul_executor_site_variables_yaml variable
This creates a new entry point in project-config for zuul-executor
site-variable.yaml file.

Change-Id: I1e1d6ef7476586131334e0e34772499b808c6da9
Depends-On: I9f495e1568efcbcb74260579ca26ef040eecd748
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-03 15:23:58 -04:00
Paul Belanger a10b9036d7 Expose nodepool/nodepoolv3.yaml to puppet
This is part of our zuulv3 effort, we need to care two nodepool.yaml
files for a while.

Change-Id: Ic04d3f625e4f0b05317ea6348b6d02e730bd61b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-20 14:12:00 -05:00
Andrey Nikitin 38d7cd20c5 Order of the class parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: Ia1bccf2e4b52b83b679c1a7dff202bcc9b37c989
2016-03-21 18:10:33 +03:00
Mikhail S Medvedev 3ffa3d00d4 Add nodepool.yaml to the layout
It should have been done when nodepool.yaml moved into proejct-config
in I473a1b78acdb035eb379394a7ed5f771434dc942.
Once added, openstackci::nodepool can use it instead of hard coding
the location.

Needed-By: I0cb03ba0256fac5d789941cc16f8f8ade75a3c33
Change-Id: I9aeac79b7039c1e3c2db93b52587ec948a7fbf91
2016-02-05 17:36:36 -06:00
Paul Belanger a24c52d437 Add grafana dashboards directory to the layout
Change-Id: I2755fe4fee720c7805eed2cb5bdf11de667bbd4f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-09 11:23:06 -04:00
Mikhail S Medvedev 5699dbd397 Allow specifying repo ref as a class parameter
Having to create a custom fact to set project_config ref could be an
overkill for some use cases, e.g. for setting up a third-party CI.

Change-Id: I9772e10a3a56f900e56d425fe7bbfd2261360c1a
2015-08-20 17:56:13 -05:00
Colleen Murphy 81d0f9d161 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

This patch also corrects lint errors caught by the
puppet-lint-empty_string-check plugin by changing the default value of
the $base parameter to be undef instead of empty string, which will be
evaluated the same when interpolated in a string, and by making the
$url parameter required.

Change-Id: Ic1146cbd44b589c5dfca10deb410301ef4d46528
2015-08-13 16:26:34 -07:00
Jeremy Stanley 9f9049c323 Add a common data directory for job workers
It's useful to be able to add data files on our workers as a common
reference, much in the same way job scripts are provided. This will
be used to keep a local copy of the bindep fallback package list so
that it doesn't require directly cloning the project-config repo
during job run-time.

Change-Id: I30a8be9167cc5c52faae59a35a284b3f37b93f44
2015-07-10 19:49:50 +00:00
Clark Boylan 32bba65a8a Provide way to specify repo ref
We don't always want to use just 'master' since that may result in races
when running puppet across many nodes while project_config is changing.
Allow for a way to specify the ref we want via facter with a fallback to
master if the fact does not exist.

Change-Id: If1c17e55c7f1b15d28748761c3ee99af88fada40
2015-02-10 08:58:40 -08:00
Doug Hellmann d4adabb4c4 Generate specs.o.o root page from template
Instead of publishing a static file, we will generate the
specs.openstack.org root page from a jenkins job.

Depends-On: I828d65f10fb7608b59e3561cedc9553d4d96ee75
Change-Id: Ib2d2bc212591aa54c51ca3669baf8168fd99876f
2015-01-05 03:34:52 +00:00
James E. Blair f0a6a59c00 Switch gerritbot to project-config
Change-Id: I952a16dac32625e829d1fccb9e2472640cd31fd5
2014-09-25 11:03:04 -07:00
James E. Blair ba60b19be8 Switch specs to project-config
Change-Id: If256bb1d00ca3ad37d323b9707d10bc2d9519a4f
2014-09-25 11:03:04 -07:00
James E. Blair da5547c533 Switch accessbot to project-config
Change-Id: Ie1e6416c0b6d70d647b3c3bcef8843cc06dc73f4
2014-09-25 11:03:04 -07:00
James E. Blair 7a669c6838 Switch nodepool to project-config
Change-Id: I72dbb32d28bd30955ac6a76ebfceb9cd98a49d5f
2014-09-25 11:03:04 -07:00
James E. Blair 666cd0dfcc Switch gerrit to project-config
Change-Id: I3e7358b4bc64e494a5990c79d16fafc21f5ed6af
2014-09-25 11:03:04 -07:00
James E. Blair e5b59a542d Switch jenkins to project-config
Change-Id: If7b98d6d842946c0f7e9c4925834117e7a833313
2014-09-25 11:03:04 -07:00
James E. Blair 9af40cbea9 Switch zuul and zuul-dev to project-config
Start using the project-config repo for Zuul.  Stop managing
/etc/zuul/layout in the zuul module itself in favor of the
project_config module.

Change-Id: I46ddb22c53783c0cffa665959f708b0568abd25f
2014-09-25 11:03:00 -07:00