Skip to content

Commit

Permalink
Merge pull request #85 from Puppet-Finland/unsup_2
Browse files Browse the repository at this point in the history
Remove untested operating systems from metadata.json
  • Loading branch information
mattock authored Feb 7, 2019
2 parents bd4c219 + a6ab7fc commit 9bdef5e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ keys/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
Expand Down
1 change: 1 addition & 0 deletions hooks/post/80_post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
end
end
rescue NoMethodError
nil
end
say "\n" + 'Please ensure that your firewall is not blocking access to the configured Puppet services'
else
Expand Down
4 changes: 3 additions & 1 deletion hooks/pre_commit/20_rand_passwords.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ def randomize_parameter(mod, param)
end

# Iterate over all scenarios/modules where PuppetDB password may be missing
%w[puppetmaster_puppetdb puppetmaster_puppetboard puppetmaster_lcm].each do |mod|
['puppetmaster_puppetdb', 'puppetmaster_puppetboard', 'puppetmaster_lcm'].each do |mod|
begin
randomize_parameter mod, 'puppetdb_database_password' if module_enabled? mod
rescue NoMethodError
# We get here every time this hook gets called, because only one of the
# modules/scenarios will be active at a time.
nil
end
end

Expand All @@ -25,4 +26,5 @@ def randomize_parameter(mod, param)
begin
randomize_parameter 'puppetmaster_puppetboard', 'puppetboard_password' if module_enabled? 'puppetmaster_puppetboard'
rescue NoMethodError
nil
end
2 changes: 1 addition & 1 deletion manifests/lcm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
$foreman_manage_memcached = true
$foreman_memcached_max_memory = '8%'
$foreman_url = "https://${facts['fqdn']}"
$primary_names = unique([ "${facts['fqdn']}", "${facts['hostname']}", 'puppet', "puppet.${facts['domain']}" ])
$primary_names = unique([ $facts['fqdn'], $facts['hostname'], 'puppet', "puppet.${facts['domain']}" ])
$foreman_serveraliases = $primary_names
$foreman_puppetdb_dashboard_address = "http://${facts['fqdn']}:8080/pdb/dashboard"
$foreman_puppetdb_address = "https://${facts['fqdn']}:8081/v2/commands"
Expand Down
18 changes: 0 additions & 18 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@
"7"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
Expand Down
2 changes: 1 addition & 1 deletion vagrant/modules.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
notify { 'Running librarian-puppet': }

exec { 'Run librarian-puppet':
cwd => "${::basedir}",
cwd => $::basedir,
logoutput => true,
command => 'librarian-puppet install --verbose',
timeout => 600,
Expand Down

0 comments on commit 9bdef5e

Please sign in to comment.