author | Shawn Ferry <shawn.ferry@oracle.com> |
Mon, 28 Nov 2016 16:54:02 -0800 | |
changeset 7565 | 48aa82a0931f |
permissions | -rw-r--r-- |
7565
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
1 |
From dcd2568b4bcb30962da54a4a12c3d75b3f5da2b5 Mon Sep 17 00:00:00 2001 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
2 |
From: Shawn Ferry <[email protected]> |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
3 |
Date: Fri, 9 Dec 2016 15:01:26 -0500 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
4 |
Subject: [PATCH] Puppet4 paths |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
5 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
6 |
Patches not suitable for upstream |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
7 |
25232171 puppet hard codes new path locations |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
8 |
25232111 puppet install.rb vardir argument has no impact |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
9 |
--- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
10 |
install.rb | 4 ++-- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
11 |
lib/puppet/defaults.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
12 |
lib/puppet/face/config.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
13 |
lib/puppet/face/module/install.rb | 12 ++++++------ |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
14 |
lib/puppet/face/module/list.rb | 10 +++++----- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
15 |
lib/puppet/face/module/uninstall.rb | 4 ++-- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
16 |
lib/puppet/provider/package/puppet_gem.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
17 |
lib/puppet/reference/configuration.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
18 |
lib/puppet/util/run_mode.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
19 |
man/man5/puppet.conf.5 | 4 ++-- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
20 |
man/man8/puppet-config.8 | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
21 |
man/man8/puppet-module.8 | 14 +++++++------- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
22 |
spec/unit/provider/package/puppet_gem_spec.rb | 2 +- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
23 |
spec/unit/util/run_mode_spec.rb | 4 ++-- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
24 |
14 files changed, 33 insertions(+), 33 deletions(-) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
25 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
26 |
diff --git a/install.rb b/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
27 |
index bed64d0..dccf787 100755 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
28 |
--- a/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
29 |
+++ b/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
30 |
@@ -178,7 +178,7 @@ def prepare_installation |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
31 |
opts.on('--codedir[=OPTIONAL]', 'Installation directory for code files', 'Default /etc/puppetlabs/code') do |codedir| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
32 |
InstallOptions.codedir = codedir |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
33 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
34 |
- opts.on('--vardir[=OPTIONAL]', 'Installation directory for var files', 'Default /opt/puppetlabs/puppet/cache') do |vardir| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
35 |
+ opts.on('--vardir[=OPTIONAL]', 'Installation directory for var files', 'Default /var/puppetlabs/puppet/cache') do |vardir| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
36 |
InstallOptions.vardir = vardir |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
37 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
38 |
opts.on('--rundir[=OPTIONAL]', 'Installation directory for state files', 'Default /var/run/puppetlabs') do |rundir| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
39 |
@@ -269,7 +269,7 @@ def prepare_installation |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
40 |
elsif $operatingsystem == "windows" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
41 |
vardir = File.join(Dir::COMMON_APPDATA, "PuppetLabs", "puppet", "cache") |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
42 |
else |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
43 |
- vardir = "/opt/puppetlabs/puppet/cache" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
44 |
+ vardir = "/var/puppetlabs/puppet/cache" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
45 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
46 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
47 |
if not InstallOptions.rundir.nil? |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
48 |
diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
49 |
index fa1aeaa..ff4f210 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
50 |
--- a/lib/puppet/defaults.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
51 |
+++ b/lib/puppet/defaults.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
52 |
@@ -1207,7 +1207,7 @@ EOT |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
53 |
:desc => "File that provides mapping between custom SSL oids and user-friendly names" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
54 |
}, |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
55 |
:basemodulepath => { |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
56 |
- :default => "$codedir/modules#{File::PATH_SEPARATOR}/opt/puppetlabs/puppet/modules", |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
57 |
+ :default => "$codedir/modules#{File::PATH_SEPARATOR}/usr/puppetlabs/puppet/modules", |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
58 |
:type => :path, |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
59 |
:desc => "The search path for **global** modules. Should be specified as a |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
60 |
list of directories separated by the system path separator character. (The |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
61 |
diff --git a/lib/puppet/face/config.rb b/lib/puppet/face/config.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
62 |
index cd8e746..82a9463 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
63 |
--- a/lib/puppet/face/config.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
64 |
+++ b/lib/puppet/face/config.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
65 |
@@ -102,7 +102,7 @@ Puppet::Face.define(:config, '0.0.1') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
66 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
67 |
Set the vardir for only the agent: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
68 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
69 |
- $ puppet config set vardir /opt/puppetlabs/puppet/cache --section agent |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
70 |
+ $ puppet config set vardir /var/puppetlabs/puppet/cache --section agent |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
71 |
EOT |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
72 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
73 |
when_invoked do |name, value, options| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
74 |
diff --git a/lib/puppet/face/module/install.rb b/lib/puppet/face/module/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
75 |
index d0ab01e..d533547 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
76 |
--- a/lib/puppet/face/module/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
77 |
+++ b/lib/puppet/face/module/install.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
78 |
@@ -46,20 +46,20 @@ Puppet::Face.define(:module, '1.0.0') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
79 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
80 |
Install a module into a specific directory: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
81 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
82 |
- $ puppet module install puppetlabs-vcsrepo --target-dir=/opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
83 |
- Preparing to install into /opt/puppetlabs/puppet/modules ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
84 |
+ $ puppet module install puppetlabs-vcsrepo --target-dir=/usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
85 |
+ Preparing to install into /usr/puppetlabs/puppet/modules ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
86 |
Downloading from https://forgeapi.puppetlabs.com ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
87 |
Installing -- do not interrupt ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
88 |
- /opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
89 |
+ /usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
90 |
└── puppetlabs-vcsrepo (v0.0.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
91 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
92 |
Install a module into a specific directory and check for dependencies in other directories: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
93 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
94 |
- $ puppet module install puppetlabs-vcsrepo --target-dir=/opt/puppetlabs/puppet/modules --modulepath /etc/puppetlabs/code/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
95 |
- Preparing to install into /opt/puppetlabs/puppet/modules ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
96 |
+ $ puppet module install puppetlabs-vcsrepo --target-dir=/usr/puppetlabs/puppet/modules --modulepath /etc/puppetlabs/code/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
97 |
+ Preparing to install into /usr/puppetlabs/puppet/modules ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
98 |
Downloading from https://forgeapi.puppetlabs.com ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
99 |
Installing -- do not interrupt ... |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
100 |
- /opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
101 |
+ /usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
102 |
└── puppetlabs-vcsrepo (v0.0.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
103 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
104 |
Install a module from a release archive: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
105 |
diff --git a/lib/puppet/face/module/list.rb b/lib/puppet/face/module/list.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
106 |
index cecaf5b..df51df6 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
107 |
--- a/lib/puppet/face/module/list.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
108 |
+++ b/lib/puppet/face/module/list.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
109 |
@@ -27,7 +27,7 @@ Puppet::Face.define(:module, '1.0.0') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
110 |
├── puppetlabs-mysql (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
111 |
├── puppetlabs-sqlite (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
112 |
└── puppetlabs-stdlib (v2.2.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
113 |
- /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
114 |
+ /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
115 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
116 |
List installed modules in a tree view: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
117 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
118 |
@@ -38,7 +38,7 @@ Puppet::Face.define(:module, '1.0.0') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
119 |
├─┬ puppetlabs-mysql (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
120 |
│ └── bodepd-create_resources (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
121 |
└── puppetlabs-sqlite (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
122 |
- /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
123 |
+ /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
124 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
125 |
List installed modules from a specified environment: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
126 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
127 |
@@ -49,12 +49,12 @@ Puppet::Face.define(:module, '1.0.0') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
128 |
├── puppetlabs-mysql (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
129 |
├── puppetlabs-sqlite (v0.0.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
130 |
└── puppetlabs-stdlib (v2.2.1) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
131 |
- /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
132 |
+ /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
133 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
134 |
List installed modules from a specified modulepath: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
135 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
136 |
- $ puppet module list --modulepath /opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
137 |
- /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
138 |
+ $ puppet module list --modulepath /usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
139 |
+ /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
140 |
EOT |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
141 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
142 |
when_invoked do |options| |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
143 |
diff --git a/lib/puppet/face/module/uninstall.rb b/lib/puppet/face/module/uninstall.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
144 |
index e3c74c5..90c6ed4 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
145 |
--- a/lib/puppet/face/module/uninstall.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
146 |
+++ b/lib/puppet/face/module/uninstall.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
147 |
@@ -16,8 +16,8 @@ Puppet::Face.define(:module, '1.0.0') do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
148 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
149 |
Uninstall a module from a specific directory: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
150 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
151 |
- $ puppet module uninstall puppetlabs-ssh --modulepath /opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
152 |
- Removed /opt/puppetlabs/puppet/modules/ssh (v1.0.0) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
153 |
+ $ puppet module uninstall puppetlabs-ssh --modulepath /usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
154 |
+ Removed /usr/puppetlabs/puppet/modules/ssh (v1.0.0) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
155 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
156 |
Uninstall a module from a specific environment: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
157 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
158 |
diff --git a/lib/puppet/provider/package/puppet_gem.rb b/lib/puppet/provider/package/puppet_gem.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
159 |
index 8d876a0..86752b7 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
160 |
--- a/lib/puppet/provider/package/puppet_gem.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
161 |
+++ b/lib/puppet/provider/package/puppet_gem.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
162 |
@@ -12,6 +12,6 @@ Puppet::Type.type(:package).provide :puppet_gem, :parent => :gem do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
163 |
# sort out the absolute path. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
164 |
commands :gemcmd => "gem" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
165 |
else |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
166 |
- commands :gemcmd => "/opt/puppetlabs/puppet/bin/gem" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
167 |
+ commands :gemcmd => "/usr/bin/gem" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
168 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
169 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
170 |
diff --git a/lib/puppet/reference/configuration.rb b/lib/puppet/reference/configuration.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
171 |
index ac00cab..384077a 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
172 |
--- a/lib/puppet/reference/configuration.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
173 |
+++ b/lib/puppet/reference/configuration.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
174 |
@@ -23,7 +23,7 @@ config = Puppet::Util::Reference.newreference(:configuration, :depth => 1, :doc |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
175 |
# Now print the data about the item. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
176 |
val = object.default |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
177 |
if name.to_s == 'vardir' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
178 |
- val = 'Unix/Linux: /opt/puppetlabs/puppet/cache -- Windows: C:\ProgramData\PuppetLabs\puppet\cache -- Non-root user: ~/.puppetlabs/opt/puppet/cache' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
179 |
+ val = 'Unix/Linux: /var/puppetlabs/puppet/cache -- Windows: C:\ProgramData\PuppetLabs\puppet\cache -- Non-root user: ~/.puppetlabs/opt/puppet/cache' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
180 |
elsif name.to_s == 'confdir' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
181 |
val = 'Unix/Linux: /etc/puppetlabs/puppet -- Windows: C:\ProgramData\PuppetLabs\puppet\etc -- Non-root user: ~/.puppetlabs/etc/puppet' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
182 |
elsif name.to_s == 'codedir' |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
183 |
diff --git a/lib/puppet/util/run_mode.rb b/lib/puppet/util/run_mode.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
184 |
index cf6c461..21968ce 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
185 |
--- a/lib/puppet/util/run_mode.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
186 |
+++ b/lib/puppet/util/run_mode.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
187 |
@@ -67,7 +67,7 @@ module Puppet |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
188 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
189 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
190 |
def var_dir |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
191 |
- which_dir("/opt/puppetlabs/puppet/cache", "~/.puppetlabs/opt/puppet/cache") |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
192 |
+ which_dir("/var/puppetlabs/puppet/cache", "~/.puppetlabs/opt/puppet/cache") |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
193 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
194 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
195 |
def run_dir |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
196 |
diff --git a/man/man5/puppet.conf.5 b/man/man5/puppet.conf.5 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
197 |
index ff23f71..414cfc8 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
198 |
--- a/man/man5/puppet.conf.5 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
199 |
+++ b/man/man5/puppet.conf.5 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
200 |
@@ -121,7 +121,7 @@ The search path for \fBglobal\fR modules\. Should be specified as a list of dire |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
201 |
These are the modules that will be used by \fIall\fR environments\. Note that the \fBmodules\fR directory of the active environment will have priority over any global directories\. For more info, see https://docs\.puppetlabs\.com/puppet/latest/reference/environments\.html |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
202 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
203 |
.IP "\(bu" 4 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
204 |
-\fIDefault\fR: $codedir/modules:/opt/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
205 |
+\fIDefault\fR: $codedir/modules:/usr/puppetlabs/puppet/modules |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
206 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
207 |
.IP "" 0 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
208 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
209 |
@@ -1730,7 +1730,7 @@ The user puppet master should run as\. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
210 |
Where Puppet stores dynamic and growing data\. The default for this setting is calculated specially, like \fBconfdir\fR_\. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
211 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
212 |
.IP "\(bu" 4 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
213 |
-\fIDefault\fR: /opt/puppetlabs/puppet/cache |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
214 |
+\fIDefault\fR: /var/puppetlabs/puppet/cache |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
215 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
216 |
.IP "" 0 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
217 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
218 |
diff --git a/man/man8/puppet-config.8 b/man/man8/puppet-config.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
219 |
index 35310d0..5df37e4 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
220 |
--- a/man/man8/puppet-config.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
221 |
+++ b/man/man8/puppet-config.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
222 |
@@ -111,7 +111,7 @@ $ puppet config set rundir /var/run/puppetlabs |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
223 |
Set the vardir for only the agent: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
224 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
225 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
226 |
-$ puppet config set vardir /opt/puppetlabs/puppet/cache \-\-section agent |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
227 |
+$ puppet config set vardir /var/puppetlabs/puppet/cache \-\-section agent |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
228 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
229 |
.SH "COPYRIGHT AND LICENSE" |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
230 |
Copyright 2011 by Puppet Labs Apache 2 license; see COPYING |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
231 |
diff --git a/man/man8/puppet-module.8 b/man/man8/puppet-module.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
232 |
index 62591fe..b5b05a5 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
233 |
--- a/man/man8/puppet-module.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
234 |
+++ b/man/man8/puppet-module.8 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
235 |
@@ -340,13 +340,13 @@ $ puppet module install puppetlabs\-vcsrepo \-v 0\.0\.4 Preparing to install int |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
236 |
Install a module into a specific directory: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
237 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
238 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
239 |
-$ puppet module install puppetlabs\-vcsrepo \-\-target\-dir=/opt/puppetlabs/puppet/modules Preparing to install into /opt/puppetlabs/puppet/modules \.\.\. Downloading from https://forgeapi\.puppetlabs\.com \.\.\. Installing \-\- do not interrupt \.\.\. /opt/puppetlabs/puppet/modules └── puppetlabs\-vcsrepo (v0\.0\.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
240 |
+$ puppet module install puppetlabs\-vcsrepo \-\-target\-dir=/usr/puppetlabs/puppet/modules Preparing to install into /usr/puppetlabs/puppet/modules \.\.\. Downloading from https://forgeapi\.puppetlabs\.com \.\.\. Installing \-\- do not interrupt \.\.\. /usr/puppetlabs/puppet/modules └── puppetlabs\-vcsrepo (v0\.0\.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
241 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
242 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
243 |
Install a module into a specific directory and check for dependencies in other directories: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
244 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
245 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
246 |
-$ puppet module install puppetlabs\-vcsrepo \-\-target\-dir=/opt/puppetlabs/puppet/modules \-\-modulepath /etc/puppetlabs/code/modules Preparing to install into /opt/puppetlabs/puppet/modules \.\.\. Downloading from https://forgeapi\.puppetlabs\.com \.\.\. Installing \-\- do not interrupt \.\.\. /opt/puppetlabs/puppet/modules └── puppetlabs\-vcsrepo (v0\.0\.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
247 |
+$ puppet module install puppetlabs\-vcsrepo \-\-target\-dir=/usr/puppetlabs/puppet/modules \-\-modulepath /etc/puppetlabs/code/modules Preparing to install into /usr/puppetlabs/puppet/modules \.\.\. Downloading from https://forgeapi\.puppetlabs\.com \.\.\. Installing \-\- do not interrupt \.\.\. /usr/puppetlabs/puppet/modules └── puppetlabs\-vcsrepo (v0\.0\.4) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
248 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
249 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
250 |
Install a module from a release archive: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
251 |
@@ -367,25 +367,25 @@ $ puppet module install puppetlabs\-vcsrepo\-0\.0\.4\.tar\.gz \-\-ignore\-depend |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
252 |
List installed modules: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
253 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
254 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
255 |
-$ puppet module list /etc/puppetlabs/code/modules ├── bodepd\-create_resources (v0\.0\.1) ├── puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-mysql (v0\.0\.1) ├── puppetlabs\-sqlite (v0\.0\.1) └── puppetlabs\-stdlib (v2\.2\.1) /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
256 |
+$ puppet module list /etc/puppetlabs/code/modules ├── bodepd\-create_resources (v0\.0\.1) ├── puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-mysql (v0\.0\.1) ├── puppetlabs\-sqlite (v0\.0\.1) └── puppetlabs\-stdlib (v2\.2\.1) /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
257 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
258 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
259 |
List installed modules in a tree view: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
260 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
261 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
262 |
-$ puppet module list \-\-tree /etc/puppetlabs/code/modules └─┬ puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-stdlib (v2\.2\.1) ├─┬ puppetlabs\-mysql (v0\.0\.1) │ └── bodepd\-create_resources (v0\.0\.1) └── puppetlabs\-sqlite (v0\.0\.1) /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
263 |
+$ puppet module list \-\-tree /etc/puppetlabs/code/modules └─┬ puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-stdlib (v2\.2\.1) ├─┬ puppetlabs\-mysql (v0\.0\.1) │ └── bodepd\-create_resources (v0\.0\.1) └── puppetlabs\-sqlite (v0\.0\.1) /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
264 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
265 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
266 |
List installed modules from a specified environment: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
267 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
268 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
269 |
-$ puppet module list \-\-environment production /etc/puppetlabs/code/modules ├── bodepd\-create_resources (v0\.0\.1) ├── puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-mysql (v0\.0\.1) ├── puppetlabs\-sqlite (v0\.0\.1) └── puppetlabs\-stdlib (v2\.2\.1) /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
270 |
+$ puppet module list \-\-environment production /etc/puppetlabs/code/modules ├── bodepd\-create_resources (v0\.0\.1) ├── puppetlabs\-bacula (v0\.0\.2) ├── puppetlabs\-mysql (v0\.0\.1) ├── puppetlabs\-sqlite (v0\.0\.1) └── puppetlabs\-stdlib (v2\.2\.1) /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
271 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
272 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
273 |
List installed modules from a specified modulepath: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
274 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
275 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
276 |
-$ puppet module list \-\-modulepath /opt/puppetlabs/puppet/modules /opt/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
277 |
+$ puppet module list \-\-modulepath /usr/puppetlabs/puppet/modules /usr/puppetlabs/puppet/modules (no modules installed) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
278 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
279 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
280 |
\fBsearch\fR |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
281 |
@@ -409,7 +409,7 @@ $ puppet module uninstall puppetlabs\-ssh Removed /etc/puppetlabs/code/modules/s |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
282 |
Uninstall a module from a specific directory: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
283 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
284 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
285 |
-$ puppet module uninstall puppetlabs\-ssh \-\-modulepath /opt/puppetlabs/puppet/modules Removed /opt/puppetlabs/puppet/modules/ssh (v1\.0\.0) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
286 |
+$ puppet module uninstall puppetlabs\-ssh \-\-modulepath /usr/puppetlabs/puppet/modules Removed /usr/puppetlabs/puppet/modules/ssh (v1\.0\.0) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
287 |
. |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
288 |
.P |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
289 |
Uninstall a module from a specific environment: |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
290 |
diff --git a/spec/unit/provider/package/puppet_gem_spec.rb b/spec/unit/provider/package/puppet_gem_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
291 |
index 017e0c4..2817701 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
292 |
--- a/spec/unit/provider/package/puppet_gem_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
293 |
+++ b/spec/unit/provider/package/puppet_gem_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
294 |
@@ -20,7 +20,7 @@ describe provider_class do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
295 |
if Puppet.features.microsoft_windows? |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
296 |
let(:puppet_gem) { 'gem' } |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
297 |
else |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
298 |
- let(:puppet_gem) { '/opt/puppetlabs/puppet/bin/gem' } |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
299 |
+ let(:puppet_gem) { '/usr/bin/gem' } |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
300 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
301 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
302 |
before :each do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
303 |
diff --git a/spec/unit/util/run_mode_spec.rb b/spec/unit/util/run_mode_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
304 |
index bd7759a..657d40c 100644 |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
305 |
--- a/spec/unit/util/run_mode_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
306 |
+++ b/spec/unit/util/run_mode_spec.rb |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
307 |
@@ -67,8 +67,8 @@ describe Puppet::Util::RunMode do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
308 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
309 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
310 |
describe "#var_dir" do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
311 |
- it "has vardir /opt/puppetlabs/puppet/cache when run as root" do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
312 |
- as_root { expect(@run_mode.var_dir).to eq(File.expand_path('/opt/puppetlabs/puppet/cache')) } |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
313 |
+ it "has vardir /var/puppetlabs/puppet/cache when run as root" do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
314 |
+ as_root { expect(@run_mode.var_dir).to eq(File.expand_path('/var/puppetlabs/puppet/cache')) } |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
315 |
end |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
316 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
317 |
it "has vardir ~/.puppetlabs/opt/puppet/cache when run as non-root" do |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
318 |
-- |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
319 |
2.9.3 (Apple Git-75) |
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
320 |
|
48aa82a0931f
PSARC/2016/607 Puppet 4.7.0, Hiera 3.2.0
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff
changeset
|
321 |