puppet-masterless 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -9
- data/bin/puppet-masterless +8 -8
- data/man/puppet-masterless.1 +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c151057d312cdbcfd45b8aa58f371fc759a649
|
4
|
+
data.tar.gz: 5811091ad9573e8fd0462e1fefa78b673d98014b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d83e1ee7b28c239dc8c561198c4a7508d8b2ce23932d127fa8ed5ed2b85c7531026ea220d1b67173b1aebb05690a9f57cd7427e07099d10dd1024d9d5821c934
|
7
|
+
data.tar.gz: cc3bc3657c4cf5d133924f766faeec0e89cc8a44c31c1de517d4c1bb08e3e744cc71a2586bb5e372ae2cbe0eee9622b5b0503023c9583520c1eaf49cc981656a
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ To install from [RubyGems.org][] just run:
|
|
22
22
|
The program is a single Ruby file. To install it from source, simply put
|
23
23
|
it somewhere on your PATH and make sure it's executable:
|
24
24
|
|
25
|
-
install -m 755
|
25
|
+
install -m 755 src/puppet-masterless /usr/local/bin/puppet-masterless
|
26
26
|
|
27
27
|
You can also install its man page, if desired:
|
28
28
|
|
@@ -57,7 +57,8 @@ about how this directory should be organised.
|
|
57
57
|
The program accepts arguments according to a very simple command line
|
58
58
|
grammar. To see a summary of the available options and what they
|
59
59
|
control, run `puppet-masterless` without any arguments. For full
|
60
|
-
documentation, refer to its man page[^2]
|
60
|
+
documentation, refer to its man page[^2] or help text (accessed via
|
61
|
+
`puppet-masterless help`).
|
61
62
|
|
62
63
|
[^2]: You can view a Gem's man page by installing the [gem-man][]
|
63
64
|
extension and running `gem man <gem>`.
|
@@ -71,7 +72,7 @@ It's assumed that your Puppet project is laid out something like this:
|
|
71
72
|
<confdir>
|
72
73
|
├── puppet.conf
|
73
74
|
├── hiera.yaml
|
74
|
-
├──
|
75
|
+
├── data
|
75
76
|
│ └── ...
|
76
77
|
├── manifests
|
77
78
|
│ └── ...
|
@@ -82,21 +83,34 @@ All of these paths can be overridden by command line arguments, but the
|
|
82
83
|
tool will work best if you use a project structure similar to this one.
|
83
84
|
|
84
85
|
Most importantly, all paths in your Hiera configuration should be
|
85
|
-
relative to the project's root
|
86
|
+
relative to the project's root, so that `puppet-apply` will only consult
|
87
|
+
Hiera data that's included in the package. In Hiera 5 this is usually
|
88
|
+
the case by default, since paths are considered relative to your
|
89
|
+
`hiera.yaml`:
|
90
|
+
|
91
|
+
---
|
92
|
+
version: 5
|
93
|
+
defaults:
|
94
|
+
datadir: data
|
95
|
+
data_hash: yaml_data
|
96
|
+
hierarchy:
|
97
|
+
- name: Common data
|
98
|
+
path: common.yaml
|
99
|
+
|
100
|
+
In Hiera 3, this must be done manually. The following `hiera.yaml`
|
86
101
|
illustrates one way to do this, by explicitly setting `:datadir` to a
|
87
|
-
path
|
88
|
-
consult Hiera data that's included in the package:
|
102
|
+
path under your project's `confdir`:
|
89
103
|
|
90
104
|
---
|
91
105
|
:backends:
|
92
106
|
- yaml
|
93
107
|
:yaml:
|
94
|
-
:datadir: "%{settings::confdir}/
|
108
|
+
:datadir: "%{settings::confdir}/data"
|
95
109
|
|
96
110
|
## Contributing
|
97
111
|
|
98
|
-
1. Fork it from <https://gitlab.
|
112
|
+
1. Fork it from <https://gitlab.com/catalyst-it/puppet-masterless>
|
99
113
|
2. Create a feature branch (`git checkout -b my-new-feature`)
|
100
114
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
101
115
|
4. Push to the branch (`git push origin my-new-feature`)
|
102
|
-
5. Create a Merge Request at <https://gitlab.
|
116
|
+
5. Create a Merge Request at <https://gitlab.com/catalyst-it/puppet-masterless/merge_requests>
|
data/bin/puppet-masterless
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (c) 2017-
|
3
|
+
# Copyright (c) 2017-2019 Catalyst.net Ltd
|
4
4
|
#
|
5
5
|
# This file is part of puppet-masterless.
|
6
6
|
#
|
@@ -236,7 +236,7 @@ rescue => e
|
|
236
236
|
exit(1)
|
237
237
|
end
|
238
238
|
|
239
|
-
#1 .Dd January
|
239
|
+
#1 .Dd January 28, 2019
|
240
240
|
#1 .Dt PUPPET-MASTERLESS 1
|
241
241
|
#1 .Os
|
242
242
|
#1 .Sh NAME
|
@@ -410,13 +410,13 @@ end
|
|
410
410
|
#1 .Sh CAVEATS
|
411
411
|
#1 .No For this program to be useful, Puppet must be installed on the remote host.
|
412
412
|
#1 .Pp
|
413
|
-
#1 .No This program is only intended to work with Puppet 4.10. \&It
|
414
|
-
#1 .No with other versions of Puppet, or it may not.
|
413
|
+
#1 .No This program is only intended to work with Puppet 4.10 and 5.5. \&It
|
414
|
+
#1 .No may work with other versions of Puppet, or it may not.
|
415
415
|
#1 .Pp
|
416
416
|
#1 .No The SSH functionality of this program is intentionally simplistic.
|
417
417
|
#1 .No If you need more complex behaviour when connecting to remote machines,
|
418
418
|
#1 .No use the
|
419
|
-
#1 .
|
419
|
+
#1 .Cm package
|
420
420
|
#1 .No command in combination with a tool like
|
421
421
|
#1 .Xr ansible 1 ,
|
422
422
|
#1 .Xr cap 1 or
|
@@ -425,7 +425,7 @@ end
|
|
425
425
|
#1 .No Very little information is displayed when an error occurs.
|
426
426
|
#1 .Sh SECURITY CONSIDERATIONS
|
427
427
|
#1 .No The
|
428
|
-
#1 .
|
428
|
+
#1 .Cm apply
|
429
429
|
#1 .No command uses
|
430
430
|
#1 .Xr sudo 1
|
431
431
|
#1 .No to assume a given user's identity on the remote host, with all of the
|
@@ -436,8 +436,8 @@ end
|
|
436
436
|
#1 .Xr puppet-apply 8 .
|
437
437
|
#1 .Sh IMPLEMENTATION NOTES
|
438
438
|
#1 .Nm
|
439
|
-
#1 .No is a Ruby script with no Gem dependencies. \&It should be
|
440
|
-
#1 .No and run it on any machine with Ruby 1.9 or newer.
|
439
|
+
#1 .No is a single Ruby script with no Gem dependencies. \&It should be
|
440
|
+
#1 .No possible to copy and run it on any machine with Ruby 1.9 or newer.
|
441
441
|
#1 .Sh SEE ALSO
|
442
442
|
#1 .Xr puppet 8 ,
|
443
443
|
#1 .Xr puppet-apply 8 ,
|
data/man/puppet-masterless.1
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.Dd January
|
1
|
+
.Dd January 28, 2019
|
2
2
|
.Dt PUPPET-MASTERLESS 1
|
3
3
|
.Os
|
4
4
|
.Sh NAME
|
@@ -172,13 +172,13 @@ puppet-masterless package confdir test \\
|
|
172
172
|
.Sh CAVEATS
|
173
173
|
.No For this program to be useful, Puppet must be installed on the remote host.
|
174
174
|
.Pp
|
175
|
-
.No This program is only intended to work with Puppet 4.10. \&It
|
176
|
-
.No with other versions of Puppet, or it may not.
|
175
|
+
.No This program is only intended to work with Puppet 4.10 and 5.5. \&It
|
176
|
+
.No may work with other versions of Puppet, or it may not.
|
177
177
|
.Pp
|
178
178
|
.No The SSH functionality of this program is intentionally simplistic.
|
179
179
|
.No If you need more complex behaviour when connecting to remote machines,
|
180
180
|
.No use the
|
181
|
-
.
|
181
|
+
.Cm package
|
182
182
|
.No command in combination with a tool like
|
183
183
|
.Xr ansible 1 ,
|
184
184
|
.Xr cap 1 or
|
@@ -187,7 +187,7 @@ puppet-masterless package confdir test \\
|
|
187
187
|
.No Very little information is displayed when an error occurs.
|
188
188
|
.Sh SECURITY CONSIDERATIONS
|
189
189
|
.No The
|
190
|
-
.
|
190
|
+
.Cm apply
|
191
191
|
.No command uses
|
192
192
|
.Xr sudo 1
|
193
193
|
.No to assume a given user's identity on the remote host, with all of the
|
@@ -198,8 +198,8 @@ puppet-masterless package confdir test \\
|
|
198
198
|
.Xr puppet-apply 8 .
|
199
199
|
.Sh IMPLEMENTATION NOTES
|
200
200
|
.Nm
|
201
|
-
.No is a Ruby script with no Gem dependencies. \&It should be
|
202
|
-
.No and run it on any machine with Ruby 1.9 or newer.
|
201
|
+
.No is a single Ruby script with no Gem dependencies. \&It should be
|
202
|
+
.No possible to copy and run it on any machine with Ruby 1.9 or newer.
|
203
203
|
.Sh SEE ALSO
|
204
204
|
.Xr puppet 8 ,
|
205
205
|
.Xr puppet-apply 8 ,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-masterless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Hanson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Packages and applies a Puppet project to a remote host.
|
14
14
|
email: evanh@catalyst.net.nz
|