puppet-classroom-manager 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/classroom/page.rb +1 -1
- data/lib/classroom/reset.rb +1 -1
- data/lib/classroom/sanitize.rb +1 -1
- data/lib/classroom/troubleshoot.rb +3 -4
- data/lib/classroom/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e902e78cd12a8be8292806065e9aa41c92cca153
|
4
|
+
data.tar.gz: c10d300c5bb991f60b1e40d2f3caea2dc5712804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb61eb16c05429bd338dc963ad171d4e287cbe3b640e9b1d3ec6b84462722f972b4588db7c6a7ffc24fcd4ceaa7b23aa882edb03be029bf8f6f8dacdca3583c8
|
7
|
+
data.tar.gz: 2c5488434731e2cb7905203e813b4beaaf862b2221e665bd71bead572d95f08aee6217614d156b307cbdda0dff94b12af5294f1464dab1a7c093531207acea09
|
data/CHANGELOG.md
CHANGED
data/lib/classroom/page.rb
CHANGED
@@ -13,7 +13,7 @@ class Classroom
|
|
13
13
|
exit 1
|
14
14
|
end
|
15
15
|
|
16
|
-
puts "--------- You're about to page and possibly wake
|
16
|
+
puts "--------- You're about to page and possibly wake someone up. ---------"
|
17
17
|
puts "Please check the Troubleshooting Guide for solutions to common problems."
|
18
18
|
puts
|
19
19
|
puts "https://github.com/puppetlabs/courseware/blob/master/TroubleshootingGuide.md"
|
data/lib/classroom/reset.rb
CHANGED
@@ -49,7 +49,7 @@ EOF
|
|
49
49
|
ssldir = '/etc/puppetlabs/puppet/ssl'
|
50
50
|
puppetdbcerts = '/etc/puppetlabs/puppetdb/ssl'
|
51
51
|
consolecerts = '/opt/puppetlabs/server/data/console-services/certs'
|
52
|
-
pgsqlcerts = '/opt/puppetlabs/server/data/postgresql/9.
|
52
|
+
pgsqlcerts = '/opt/puppetlabs/server/data/postgresql/9.6/data/certs'
|
53
53
|
orchcerts = '/etc/puppetlabs/orchestration-services/ssl'
|
54
54
|
|
55
55
|
["puppet", "puppetdb", "console-services", "postgresql", "orchestration"].each do |path|
|
data/lib/classroom/sanitize.rb
CHANGED
@@ -9,7 +9,7 @@ class Classroom
|
|
9
9
|
certname = `puppet master --configprint certname`.strip
|
10
10
|
master = `puppet agent --configprint server`.strip
|
11
11
|
classifier = "http://#{master}:4433/classifier-api"
|
12
|
-
known_groups = [ 'All Nodes', 'Agent-specified environment', 'Production environment',
|
12
|
+
known_groups = [ 'All Nodes', 'Agent-specified environment', 'Production environment', /^PE / ]
|
13
13
|
known_users = [ 'admin', 'api_user', 'deployer' ]
|
14
14
|
auth_info = {
|
15
15
|
'ca_certificate_path' => `puppet master --configprint localcacert`.strip,
|
@@ -127,9 +127,8 @@ class Classroom
|
|
127
127
|
puts ' * journalctl -eu abalone'
|
128
128
|
puts ' * journalctl -eu puppetfactory'
|
129
129
|
puts ' * journalctl -eu showoff-courseware'
|
130
|
-
puts ' *
|
131
|
-
puts ' *
|
132
|
-
puts ' * dependency_nuke.rb'
|
130
|
+
puts ' * classroom reset certificates'
|
131
|
+
puts ' * classroom restart ${1}'
|
133
132
|
puts
|
134
133
|
puts 'Have you searched the Troubleshooting Guide for your issue?'
|
135
134
|
puts "If you're still stuck, page the on-call support with 'classroom page'"
|
@@ -140,7 +139,7 @@ class Classroom
|
|
140
139
|
ssldir = '/etc/puppetlabs/puppet/ssl'
|
141
140
|
puppetdbcerts = '/etc/puppetlabs/puppetdb/ssl'
|
142
141
|
consolecerts = '/opt/puppetlabs/server/data/console-services/certs'
|
143
|
-
pgsqlcerts = '/opt/puppetlabs/server/data/postgresql/9.
|
142
|
+
pgsqlcerts = '/opt/puppetlabs/server/data/postgresql/9.6/data/certs'
|
144
143
|
orchcerts = '/etc/puppetlabs/orchestration-services/ssl'
|
145
144
|
|
146
145
|
cert = same_file("#{ssldir}/certs/#{certname}.pem", [
|
data/lib/classroom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-classroom-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Ford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.2.2
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Manage Puppet classroom VMs and updating courseware.
|