Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of pp_role #33

Merged
merged 1 commit into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This Puppet module contains Puppet Task Plans used to deploy and manage at-scale

Use this module to deploy Puppet Enterprise 2019.x Standard, Large, and Extra Large architecture.

* This deployment depends on and assumes the use of trusted facts. Specifically, `pp_role` and `pp_environment`.
* This deployment depends on and assumes the use of trusted facts. Specifically, `pp_application` and `pp_cluster`.
* This deployment assumes that at least for PE infrastructure nodes, Puppet certnames are correct, resolvable FQDNs.

## Documentation
Expand Down
3 changes: 1 addition & 2 deletions installer/primary-master/csr_attributes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
extension_requests:
pp_role: "peadm::master"
pp_environment: "pe_production"
pp_application: "puppet/master"
3 changes: 1 addition & 2 deletions installer/puppetdb-database/csr_attributes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
extension_requests:
pp_role: "peadm::puppetdb_database"
pp_environment: "pe_production"
pp_application: "puppet/puppetdb-database"
16 changes: 8 additions & 8 deletions manifests/setup/node_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This class will be applied during master bootstrap using e.g.
#
# puppet apply \
# --exec 'class { "peadm::node_manager":
# --exec 'class { "peadm::setup::node_manager":
# environments => ["production", "staging", "development"],
# }'
#
Expand Down Expand Up @@ -43,7 +43,7 @@
# We modify this group's rule such that all PE infrastructure nodes will be
# members.
node_group { 'PE Infrastructure Agent':
rule => ['and', ['~', ['trusted', 'extensions', 'pp_role'], '^peadm::']],
rule => ['and', ['~', ['trusted', 'extensions', 'pp_application'], '^puppet/']],
}

# We modify this group to add, as data, the compiler_pool_address only.
Expand All @@ -52,7 +52,7 @@
node_group { 'PE Master':
parent => 'PE Infrastructure',
rule => ['or',
['and', ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler']],
['and', ['=', ['trusted', 'extensions', 'pp_application'], 'puppet/compiler']],
['=', 'name', $master_host],
],
data => {
Expand All @@ -71,7 +71,7 @@
parent => 'PE Infrastructure',
environment => 'production',
override_environment => false,
rule => ['and', ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::puppetdb_database']],
rule => ['and', ['=', ['trusted', 'extensions', 'pp_application'], 'puppet/puppetdb-database']],
classes => {
'puppet_enterprise::profile::database' => { },
},
Expand All @@ -84,7 +84,7 @@
ensure => present,
parent => 'PE Infrastructure',
rule => ['and',
['=', ['trusted', 'extensions', 'pp_role'], 'peadm::master'],
['=', ['trusted', 'extensions', 'pp_application'], 'puppet/master'],
['=', ['trusted', 'extensions', 'pp_cluster'], 'A'],
],
data => {
Expand All @@ -103,7 +103,7 @@
ensure => 'present',
parent => 'PE Master',
rule => ['and',
['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler'],
['=', ['trusted', 'extensions', 'pp_application'], 'puppet/compiler'],
['=', ['trusted', 'extensions', 'pp_cluster'], 'A'],
],
classes => {
Expand Down Expand Up @@ -138,7 +138,7 @@
ensure => present,
parent => 'PE Infrastructure',
rule => ['and',
['=', ['trusted', 'extensions', 'pp_role'], 'peadm::master'],
['=', ['trusted', 'extensions', 'pp_application'], 'puppet/master'],
['=', ['trusted', 'extensions', 'pp_cluster'], 'B'],
],
data => {
Expand All @@ -155,7 +155,7 @@
ensure => 'present',
parent => 'PE Master',
rule => ['and',
['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler'],
['=', ['trusted', 'extensions', 'pp_application'], 'puppet/compiler'],
['=', ['trusted', 'extensions', 'pp_cluster'], 'B'],
],
classes => {
Expand Down
18 changes: 6 additions & 12 deletions plans/unit/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@
content => @(HEREDOC),
---
extension_requests:
pp_application: "puppet"
pp_role: "peadm::master"
pp_application: "puppet/master"
pp_cluster: "A"
| HEREDOC
)
Expand All @@ -170,8 +169,7 @@
content => @(HEREDOC),
---
extension_requests:
pp_application: "puppet"
pp_role: "peadm::puppetdb_database"
pp_application: "puppet/puppetdb-database"
pp_cluster: "A"
| HEREDOC
)
Expand All @@ -181,8 +179,7 @@
content => @(HEREDOC),
---
extension_requests:
pp_application: "puppet"
pp_role: "peadm::puppetdb_database"
pp_application: "puppet/puppetdb-database"
pp_cluster: "B"
| HEREDOC
)
Expand Down Expand Up @@ -260,8 +257,7 @@
install_flags => [
'--puppet-service-ensure', 'stopped',
"main:dns_alt_names=${dns_alt_names_csv}",
'extension_requests:pp_application=puppet',
'extension_requests:pp_role=peadm::master',
'extension_requests:pp_application=puppet/master',
'extension_requests:pp_cluster=B',
],
)
Expand All @@ -271,8 +267,7 @@
install_flags => [
'--puppet-service-ensure', 'stopped',
"main:dns_alt_names=${dns_alt_names_csv}",
'extension_requests:pp_application=puppet',
'extension_requests:pp_role=peadm::compiler',
'extension_requests:pp_application=puppet/compiler',
'extension_requests:pp_cluster=A',
],
)
Expand All @@ -282,8 +277,7 @@
install_flags => [
'--puppet-service-ensure', 'stopped',
"main:dns_alt_names=${dns_alt_names_csv}",
'extension_requests:pp_application=puppet',
'extension_requests:pp_role=peadm::compiler',
'extension_requests:pp_application=puppet/compiler',
'extension_requests:pp_cluster=B',
],
)
Expand Down