Skip to content

Commit 075dce2

Browse files
committed
(Maint) Update commands to use new forms in hiera examples
The hiera examples were written assuming that puppet apply was just puppet (the old form), and that hiera was not always available (and so set the libdir).
1 parent 2de1e3b commit 075dce2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/hiera/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Module from forge with module defaults
2424

2525
<pre>
2626
$ mv modules/data modules/data.bak
27-
$ puppet --config etc/puppet.conf --libdir ../lib site.pp
27+
$ puppet apply --config etc/puppet.conf site.pp
2828
notice: /Stage[main]/Ntp::Config/File[/tmp/ntp.conf]/ensure: defined content as '{md5}7045121976147a932a66c7671939a9ad'
2929
notice: /Stage[main]/Users::Common/Notify[Adding users::common]/message: defined 'message' as 'Adding users::common'
3030
$ cat /tmp/ntp.conf
@@ -40,7 +40,7 @@ Site wide override data in _data::common_
4040

4141
<pre>
4242
$ mv modules/data.bak modules/data
43-
$ puppet --config etc/puppet.conf --libdir ../lib site.pp
43+
$ puppet apply --config etc/puppet.conf site.pp
4444
notice: /Stage[main]/Ntp::Config/File[/tmp/ntp.conf]/content: content changed '{md5}7045121976147a932a66c7671939a9addc2' to '{md5}8f9039fe1989a278a0a8e1836acb8d23'
4545
notice: /Stage[main]/Users::Common/Notify[Adding users::common]/message: defined 'message' as 'Adding users::common'
4646
$ cat /tmp/ntp.conf
@@ -56,7 +56,7 @@ Fact driven overrides for location=dc1
5656
* The _hiera_include()_ function includes _users::common_ and _users::dc1_ as the data file for dc1 adds that
5757

5858
<pre>
59-
$ FACTER_location=dc1 puppet --config etc/puppet.conf --libdir ../lib site.pp
59+
$ FACTER_location=dc1 puppet apply --config etc/puppet.conf site.pp
6060
notice: /Stage[main]/Ntp::Config/File[/tmp/ntp.conf]/content: content changed '{md5}8f9039fe1989a278a0a8e1836acb8d23' to '{md5}074d0e2ac727f6cb9afe3345d574b578'
6161
notice: /Stage[main]/Users::Common/Notify[Adding users::common]/message: defined 'message' as 'Adding users::common'
6262
notice: /Stage[main]/Users::Dc1/Notify[Adding users::dc1]/message: defined 'message' as 'Adding users::dc1'
@@ -69,7 +69,7 @@ Now simulate a machine in _dc2_, because there is no data for dc2 it uses the si
6969
does not include the _users::dc1_ class anymore
7070

7171
<pre>
72-
$ FACTER_location=dc2 puppet --config etc/puppet.conf --libdir ../lib site.pp
72+
$ FACTER_location=dc2 puppet apply --config etc/puppet.conf site.pp
7373
warning: Could not find class data::dc2 for nephilim.ml.org
7474
notice: /Stage[main]/Ntp::Config/File[/tmp/ntp.conf]/content: content changed '{md5}074d0e2ac727f6cb9afe3345d574b578' to '{md5}8f9039fe1989a278a0a8e1836acb8d23'
7575
notice: /Stage[main]/Users::Common/Notify[Adding users::common]/message: defined 'message' as 'Adding users::common'

0 commit comments

Comments
 (0)