Skip to content

Commit

Permalink
Fixes #31059 - regenerate snapshots without environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ezr-ondrej committed May 23, 2021
1 parent d00660c commit 6df37ec
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ runcmd:
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -105,7 +102,7 @@ runcmd:
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --no-daemonize
phone_home:
url: http://foreman.some.host.fqdn/unattended/built
post: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test
EOF

/usr/bin/puppet agent --config /etc/puppet/puppet.conf -o --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf -o --tags no_such_tag --server --no-daemonize
/sbin/chkconfig puppetd on

if [ -x /usr/bin/curl ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -56,7 +53,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -104,7 +101,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -67,7 +64,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -145,7 +142,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -147,7 +144,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-6-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -156,7 +153,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -156,7 +153,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-static-el7
server = localhost
environment = test

EOF

Expand All @@ -156,7 +153,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv6-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -156,7 +153,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv6-static-el7
server = localhost
environment = test

EOF

Expand All @@ -156,7 +153,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -29,4 +26,4 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test
EOF

Expand All @@ -79,7 +76,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test
EOF

Expand All @@ -113,7 +110,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ ssldir = \$vardir/ssl
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test
EOF

Expand All @@ -83,7 +80,7 @@ puppet_unit=puppet
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ runcmd:
[agent]
pluginsync = true
report = true
ca_server = localhost
certname = snapshot-ipv4-dhcp-el7
server = localhost
environment = test

EOF

Expand All @@ -82,7 +79,7 @@ runcmd:
# export a custom fact called 'is_installer' to allow detection of the installer environment in Puppet modules
export FACTER_is_installer=true
# passing a non-existent tag like "no_such_tag" to the puppet agent only initializes the node
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server localhost --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --no-daemonize


phone_home:
Expand Down

0 comments on commit 6df37ec

Please sign in to comment.