Skip to content

Commit 5611201

Browse files

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

lib/puppet/application/apply.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def help
5858
[--catalog <catalog>] [--write-catalog-summary] <file>
5959
6060
61+
EXAMPLE
62+
-------
63+
$ puppet apply -e 'notify { "hello world": }'
64+
65+
6166
DESCRIPTION
6267
-----------
6368
This is the standalone puppet execution tool; use it to apply

lib/puppet/application/ssl.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def help
5757
* submit_request:
5858
Generate a certificate signing request (CSR) and submit it to the CA. If
5959
a private and public key pair already exist, they will be used to generate
60-
the CSR. Otherwise a new key pair will be generated. If a CSR has already
60+
the CSR. Otherwise, a new key pair will be generated. If a CSR has already
6161
been submitted with the given `certname`, then the operation will fail.
6262
6363
* generate_request:
64-
Generate a certificate signing request (CSR). If
65-
a private and public key pair already exist, they will be used to generate
66-
the CSR. Otherwise a new key pair will be generated.
64+
Generate a certificate signing request (CSR). If a private and public key
65+
pair exist, they will be used to generate the CSR. Otherwise a new key
66+
pair will be generated.
6767
6868
* download_cert:
6969
Download a certificate for this host. If the current private key matches

lib/puppet/defaults.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ def self.initialize_default_settings!(settings)
161161
:skip_logging_catalog_request_destination => {
162162
:default => false,
163163
:type => :boolean,
164-
:desc => "If you wish to suppress the notice of which compiler supplied the
165-
catalog",
164+
:desc => "Disables \"notice\" level messages specifying which server the
165+
agent requests a catalog from and which server actually handles
166+
the request.",
166167
},
167168
:merge_dependency_warnings => {
168169
:default => false,

lib/puppet/functions/find_file.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
# directory. (For example, the reference `mysql/mysqltuner.pl` will search for the
88
# file `<MODULES DIRECTORY>/mysql/files/mysqltuner.pl`.)
99
#
10+
# If this function is run via puppet agent, it checks for file existence on the
11+
# Puppet Primary server. If run via puppet apply, it checks on the local host.
12+
# In both cases, the check is performed before any resources are changed.
13+
#
1014
# This function can also accept:
1115
#
1216
# * An absolute String path, which checks for the existence of a file from anywhere on disk.

lib/puppet/functions/lookup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
# or `{'strategy' => 'hash'}` --- Same as the string versions of these merge behaviors.
9898
# * `{'strategy' => 'deep', <DEEP OPTION> => <VALUE>, ...}` --- Same as `'deep'`,
9999
# but can adjust the merge with additional options. The available options are:
100-
# * `'knockout_prefix'` (string or undef) --- A string prefix to indicate a
100+
# * `'knockout_prefix'` (string) --- A string prefix to indicate a
101101
# value should be _removed_ from the final result. If a value is exactly equal
102102
# to the prefix, it will knockout the entire element. Defaults to `undef`, which
103103
# disables this feature.

lib/puppet/functions/new.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
# @example Simple Conversion to String specifying the format for the given value directly
558558
#
559559
# ```puppet
560-
# $str = String(10, "%#x") # produces '0x10'
560+
# $str = String(10, "%#x") # produces '0xa'
561561
# $str = String([10], "%(a") # produces '("10")'
562562
# ```
563563
#

0 commit comments

Comments
 (0)