Skip to content

Commit bba6919

Browse files
committed
(maint) Remove unsupported util/dev-puppet-master
This script stats the old puppet master that's been removed in Puppet 6. Keeping this in just makes things confusing.
1 parent ea82f3b commit bba6919

File tree

2 files changed

+0
-63
lines changed

2 files changed

+0
-63
lines changed

util/README_UTIL.md

-40
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,6 @@ will begin bisecting runs before and after this spec until it narrows down to a
2020

2121
To get the groups that the parallel task is running, run: be util/rspec_grouper 1000. Then run each spit out file with "be util/rspec_runner <groupfile>". If it fails, rename it to spec_order.txt and run the binary script.
2222

23-
dev-puppet-master
24-
-----------------
25-
26-
This script is very helpful for setting up a local puppet master daemon which you can then interrogate with other puppet 'app' calls such as puppet cert or puppet agent. I'm not sure who wrote it originally.
27-
28-
There are a few steps needed to get this configured properly.
29-
30-
* /etc/hosts needs a 'puppetmaster' added to its localhost entry
31-
32-
The dev-puppet-master script calls `puppet master` with --certname=puppetmaster, and this needs to resolve locally.
33-
34-
You can execute the dev-puppet-master script with a name for the sandbox configuration directory (which will be placed in ~/test/master) or it will use 'default'.
35-
36-
* ./util/dev-puppet-master bar-env
37-
38-
(places conf and var info in ~/tests/master/bar-env for instance)
39-
40-
You should now be able to do things like:
41-
42-
jpartlow@percival:~/work/puppet$ bundler exec puppet agent -t --server puppetmaster
43-
Info: Creating a new SSL key for percival.corp.puppetlabs.net
44-
Info: Caching certificate for ca
45-
Info: Creating a new SSL certificate request for percival.corp.puppetlabs.net
46-
Info: Certificate Request fingerprint (SHA256): 1B:DE:91:8C:AE:10:1B:18:0D:67:9D:4B:87:F1:26:19:6D:C6:37:35:F6:64:40:90:CF:FC:BE:8F:6F:C9:8D:D4
47-
Info: Caching certificate for percival.corp.puppetlabs.net
48-
Info: Caching certificate_revocation_list for ca
49-
Info: Retrieving plugin
50-
Info: Caching catalog for percival.corp.puppetlabs.net
51-
Info: Applying configuration version '1374193823'
52-
Info: Creating state file /home/jpartlow/.puppet/var/state/state.yaml
53-
Notice: Finished catalog run in 0.04 seconds
54-
55-
For an agent run (or any command you want to call the server), you must specify '--server puppetmaster'.
56-
57-
To check the puppetmaster's certs, you instead would need to specify the confdir/vardir:
58-
59-
jpartlow@percival:~/work/puppet$ bundler exec puppet cert list --all --confdir=~/test/master/default --vardir= ~/test/master/default/
60-
+ "percival.corp.puppetlabs.net" (SHA256) 0D:8D:A4:F1:19:E3:7A:62:ED:ED:21:B4:76:FE:04:47:50:01:20:4A:04:48:09:3A:1A:98:86:4A:08:8D:46:F0
61-
+ "puppetmaster" (SHA256) B9:F5:06:F4:74:3B:15:CE:7C:7B:A6:38:83:0E:30:6A:6F:DC:F4:FD:FF:B1:A9:8A:35:12:90:10:26:46:C2:A6 (alt names: "DNS:percival.corp.puppetlabs.net", "DNS:puppet", "DNS:puppet.corp.puppetlabs.net", "DNS:puppetmaster")
62-
6323
### Curl
6424

6525
For simple cases of testing REST API via curl:

util/dev-puppet-master

-23
This file was deleted.

0 commit comments

Comments
 (0)