You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now edit the class name in `manifests/init.pp` and `spec/classes/template_spec.rb` to match the name of the module, without forgetting to rename `template_spec.rb` accordingly.
15
-
16
-
Now we're ready to make it our own and run a build!
17
-
18
-
```
19
-
script/cibuild
20
-
.bundle/binstubs/rspec-puppet-init
21
-
```
22
-
23
-
Note that unless you have edited the class name and then run the above scripts, puppet-lint will fail during the cibuild with an error message similar to:
24
-
25
-
```
26
-
--> Checking lint:
27
-
manifests/init.pp - ERROR: template not in autoload module layout on line 2
28
-
```
29
-
30
-
If your module has other dependencies, be sure to update
31
-
`spec/fixtures/Puppetfile`.
32
-
From then on, you can use `script/cibuild` to run the tests.
33
-
34
-
When you're ready to push:
35
-
36
-
```
37
-
git create githubusername/puppet-mynewmodule
38
-
git push origin master
39
-
```
40
-
41
-
The rest of the README as follows can be used as a template for your module's README.
42
-
43
-
# Template Puppet Module for Boxen
44
-
45
-
An example of how we write Puppet modules for Boxen. Replace this
46
-
paragraph with a short explanation of what the heck makes your module
0 commit comments