Skip to content

Commit

Permalink
Corrected class declaration sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
aursu committed Dec 27, 2024
1 parent 5802556 commit af5f937
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plans/bootstrap.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
run_plan(facts, $targets)

$apply_results = apply($targets) {
include puppet

class { 'puppet::globals':
platform_name => $collection,
}

include puppet

class { 'puppet::agent::config':
server => $server,
certname => $certname,
Expand Down
4 changes: 2 additions & 2 deletions plans/server/bootstrap.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
run_plan(facts, $targets)

$apply_results = apply($targets) {
include puppet

$access_data = lookup({
name => $access_data_lookup_key,
value_type => Array[
Expand Down Expand Up @@ -49,6 +47,8 @@
platform_name => $collection,
}

include puppet

class { 'puppet::server::bootstrap::globals':
access_data => $access_data,
ssh_config => $ssh_config,
Expand Down
4 changes: 2 additions & 2 deletions plans/server/sync.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

# Apply the puppet::r10k::run class on each target node
return apply($targets) {
include puppet

class { 'puppet::globals':
platform_name => $collection,
}

include puppet

class { 'puppet::r10k::run':
cwd => '/',
setup_on_each_run => true,
Expand Down

0 comments on commit af5f937

Please sign in to comment.