Commit Graph

25 Commits

Author SHA1 Message Date
James E. Blair d24d96ab4b Stop managing puppet config in puppet
This is completely superceded by ansible at this point.

Change-Id: Ib0e08d9a5104213671af5106d88ffc9b38eb47a9
2016-10-04 15:29:25 -07:00
Monty Taylor d82e5dede5 Set hiera yaml location in puppet.conf
Puppet 4 from puppetlabs changed the default location of hiera.yaml. The
versions we run have the old location patched in, but let's put in the
value just to be complete.

Change-Id: I36ae190fc6758f297f3a48912f79871fd917c2e9
2015-12-30 15:31:56 -06:00
Spencer Krum c9dd65779f Add puppet apply settings to puppet.conf
We need to exist for a period of time with both agent and apply being
operational so that we can test things appropriately.

This moves agent specific settings to the [agent] section and adds a
[user] section which is used to control puppet apply.

As part of this, we need to add a production environment to all of our
nodes. Doing this in this way will also cover the current puppetmaster,
since puppetmaster is a puppet client.

Change-Id: I550c474d1c51c5795f745630fb91ee8cc1a55e36
2015-11-19 13:25:37 -05:00
Jenkins c97385696e Merge "Turn off implicit hiera lookups" 2015-07-16 21:14:28 +00:00
Clint Byrum de6b01226c Prevent puppet certname with mixed-case hostnames
Puppet requires that certname be all lower case. Sometimes systems will
have mixed case in their FQDN, but the lower case should be equivalent
for most if not all cases.

Note that this is discussed upstream in puppet's bug trackers here:

http://projects.puppetlabs.com/issues/1168

and here:

https://tickets.puppetlabs.com/browse/PUP-2551

Change-Id: I91aae733bf6c82abc632cac0726b129de88d9b34
2015-05-07 10:18:50 -07:00
Spencer Krum 5a71603d86 Turn off implicit hiera lookups
By default hiera performs a lookup for every class parameter. This is slow
and unnecessary since we do not use data bindings. Disable this feature.

References:
"Data Bindings" section of:
http://garylarizza.com/blog/2014/10/24/puppet-workflows-4-using-hiera-in-anger/
https://docs.puppetlabs.com/references/latest/configuration.html#databindingterminus

Change-Id: Id88dcb0339204ab46df926838118913b41ef37b9
2015-03-26 13:39:46 -07:00
Yolanda Robla 5eab48df71 Configure puppetmaster server from manifest
Currently the puppetmaster was hardcoded on a template.

Add the matching vars to the manifests that use them,
to make that setting configurable.

Change-Id: I2b641ec11284f325c22c242fabba26d0433bf85b
2015-03-17 09:38:17 +01:00
Monty Taylor 6c947dad34 Only use environments on the master
Having environment configs on not-master breaks puppet apply. Also,
environments with puppet apply don't make sense.

Change-Id: Ief6c8e9bf7d71ddc63dba484390124546f14b93a
2014-12-12 18:42:29 +00:00
Spencer Krum da3d3f58b2 Remove logic from puppet.conf
We can now use 3.x configuration exclusively. Also we used
$puppet_version which is incorrect, the value is $puppetversion.

Change-Id: I8ddd985d76970ab8937752dd9c2dc6cf4b7d160a
2014-11-25 16:22:20 -08:00
James E. Blair 10c12fe979 Change opt/config to opt/system-config
Move the install location of the git checkout of the config repo
to /opt/system-config to make things more consistent for operators.

Actually moving this on the puppetmaster will be a manual step.

Change-Id: Id9297088ae6c76c02e35414433aae2733f9f639c
2014-10-17 12:14:35 -07:00
Jeremy Stanley 05531f7978 Update default server value to new puppet master
Now that we've finished moving all puppet agents to get triggered
from the new master, update their configuration to assume the new
server is the default so that we no longer need to override it when
running locally from the command line.

Change-Id: I446341c5115d948bb8dedbe00e23b38b3e78c62f
2014-09-15 18:04:04 +00:00
Spencer Krum a8279ecdbf Enable puppet3 master bootstrap
This enables install_puppet.sh to run successfully on
trusty with PUPPET_VERSION=3 set.

Add a util directory and a puppetmaster bootstrap
shell script.

Puppetdb-terminus versions are the same in trusty and
precise but are different than the puppet version number.

Also puppetdb-terminus isn't present in the puppetlabs
repositories.

Along with this I have done sufficient testing to use
puppet version 3.6 with confidence.

Work has been done to enable directory environments as well.

Change-Id: I925fa6ac1ed9fc9c0b5e9e616fb071bf7a815436
2014-09-09 16:20:35 -07:00
Spencer Krum b65a2d3afc Allow site.pp to manage ca and ca_sever in puppet.conf
This allows us to set ca = false and ca_server = <fqdn> on the
new puppet 3 master.

Change-Id: Iba189bdc4bfb22fd23052f2570f52133ea184126
2014-07-02 15:01:17 -07:00
Clark Boylan fa38169bdd Make puppet not fail when puppetdb is dead
By default puppet will fail to run if the puppetdb is not available.
This introduces some chicken and egg problems associated with getting
things working again if you expect puppet to do that for you. Mark
puppetdb write failures as soft failures instead allowing puppet to run
even when puppetdb is not up.

See
http://docs.puppetlabs.com/puppetdb/1.6/connect_puppet_master.html#edit-puppetdbconf
for more info. Note you cannot use storeconfigs with this option set so
store_configs options are removed from the puppet master config.

Change-Id: I8c2023eac11fecaa3815741450f176ad16ede729
2014-04-25 14:03:56 -07:00
Monty Taylor 6978681ba8 Store puppetmaster reports in puppetdb
The puppet.conf file config for the master needs to actually be
configured to send the reports to the puppetdb.

Change-Id: I1116ee16acdf4217cecc59bcd264401b2b2b4709
2014-03-23 06:49:23 -07:00
Elizabeth Krumbach Joseph 708e41e9c6 Update some deprecated Puppet variable references
While getting these scripts to run on Puppet 3 with Fedora 20, I got
a series of warnings about the deprecation of variable names. These
changes should also continue to work fine on Puppet 2.7.

Change-Id: I232f5f5a9abbe94be9fe2d3b8c82f009c03a11f3
2014-01-29 14:50:05 -08:00
James E. Blair 5c22328a9f Don't report to puppet-dashboard
That site doesn't work.

Change-Id: I554a55b0ebdbbce0eb3a7a96e760a25f0ffb3a90
2013-12-19 13:54:42 -08:00
James E. Blair efe6a22aac Move puppetmaster git repo.
To /opt/config.

Change-Id: Iab489ba398522dfd8e36dedb92d4d3f8d78df642
Reviewed-on: https://review.openstack.org/18177
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:53:53 +00:00
Monty Taylor 74460853d1 Rename CI to Infra in MANY MANY places.
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:30:47 +00:00
James E. Blair 40a2411f21 Reduce puppet run interval.
Add splay option to spread out runs (even though it doesn't work
very well, it might be better than nothing).

Change-Id: Ia45340bb5de81037b892e4e574e7c6cb83c3b07c
Reviewed-on: https://review.openstack.org/11679
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-21 01:59:06 +00:00
Monty Taylor f6ae3e6b7b Use puppetmaster for slaves.
Use puppet agent --test for puppet cron.

We don't need the private ssh or gpg key on the slaves anymore.
We do need the glance testing stuff, so stick that into hiera.

Change-Id: If94fc3f150bf569efe9461f80d3565f9825eebce
Reviewed-on: https://review.openstack.org/10851
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-19 18:02:37 +00:00
Monty Taylor b6ef2cee21 Enable plugin sync for puppet.conf.
pluginsync = true is required for puppetmaster to serve out plugin information,
such as custom facter lib stuff to the agents.

Change-Id: Ia6a72bc6abdaba62ddc5f5e8ceeeb652284f98d3
Reviewed-on: https://review.openstack.org/10850
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-05 16:53:11 +00:00
Monty Taylor b78acc61ce Remove bogus pre and post run commands.
Change-Id: I04ae522d41f324babd255c7153c0ab1e9db9c524
2012-07-27 09:48:02 -05:00
Monty Taylor 6cd001f3de Put in the master's puppet config.
Change-Id: I4dbeab7c3c2e61e51df6b7a1648feb7e3b23aea9
2012-07-24 11:26:15 -05:00
Monty Taylor dbd4da09a7 Fix all of the gerrit module problems.
Change-Id: I46001fd677bc9a3634c9860ec07438c326e908e3
2012-07-24 00:28:04 -05:00