-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #853 from ekohl/add-instructions-for-new-module
Add instructions to create a new module
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,32 @@ export GITHUB_TOKEN=token | |
bundle exec msync update --message "modulesync $(git describe)" --pr --pr-labels modulesync --pr-title "modulesync $(git describe)" | ||
``` | ||
|
||
### Create a new module | ||
|
||
It is possible to create a new module using msync. | ||
First add it to the list of modules in `managed_modules.yml`. | ||
If it's not in the voxpupuli namespace, be sure to include yours by using `mynamespace/puppet-module`. | ||
Then use an offline update to create the structure: | ||
|
||
```bash | ||
bundle exec msync update --offline -f puppet-mymodule | ||
``` | ||
|
||
Now a new directory `modules/mynamespace/puppet-mymodule` will be created. | ||
|
||
Initialize git and push it to your location: | ||
|
||
```bash | ||
cd modules/mynamespace/puppet-mymodule | ||
git init | ||
git add . | ||
git commit -m 'Add module skeleton' | ||
git remote add origin [email protected]:mynamespace/puppet-mymodule | ||
git push origin HEAD -u | ||
``` | ||
|
||
Now proceed with the regular module work, such as creating `metadata.json` and your manifests. | ||
|
||
### Clean up old mess before syncing | ||
|
||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters