Created
June 4, 2015 20:14
-
-
Save Spredzy/e9dbaccc14fba45d034b to your computer and use it in GitHub Desktop.
Getting started with a module [without cherry-pick]
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
[root@node01 openstack]# | |
[root@node01 openstack]# git clone https://github.com/Spredzy/puppet-barbican-example.git | |
Cloning into 'puppet-barbican-example'... | |
remote: Counting objects: 3, done. | |
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 | |
Unpacking objects: 100% (3/3), done. | |
[root@node01 openstack]# cookiecutter https://github.com/enovance/cookiecutter-openstack-puppet-modules | |
Cloning into 'cookiecutter-openstack-puppet-modules'... | |
remote: Counting objects: 139, done. | |
remote: Total 139 (delta 0), reused 0 (delta 0), pack-reused 139 | |
Receiving objects: 100% (139/139), 25.93 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (58/58), done. | |
project_name (default is "YOURPROJECTNAME without 'puppet-'")? barbican | |
version (default is "0.0.1")? | |
year (default is "2015")? | |
[root@node01 openstack]# ll | |
total 4 | |
drwxr-xr-x 6 root root 4096 Jun 4 19:51 puppet-barbican | |
drwxr-xr-x 3 root root 33 Jun 4 19:50 puppet-barbican-example | |
[root@node01 openstack]# cp -r puppet-barbican/* puppet-barbican-example/ | |
cp: overwrite ‘puppet-barbican-example/README.md’? y | |
[root@node01 openstack]# cp puppet-barbican/.git | |
.gitignore .gitreview | |
[root@node01 openstack]# cp puppet-barbican/.gitignore puppet-barbican/.gitreview puppet-barbican/.fixtures.yml puppet-barbican-example/ | |
[root@node01 openstack]# cd puppet-barbican-example/ | |
[root@node01 puppet-barbican-example]# git status | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: README.md | |
# | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) | |
# | |
# .fixtures.yml | |
# .gitignore | |
# .gitreview | |
# CHANGELOG | |
# LICENSE | |
# lib/ | |
# manifests/ | |
# metadata.json | |
# spec/ | |
# tests/ | |
no changes added to commit (use "git add" and/or "git commit -a") | |
[root@node01 puppet-barbican-example]# git add --all | |
[root@node01 puppet-barbican-example]# git commit -m "Initial Commit" | |
[master 5afd9ef] Initial Commit | |
Committer: root <root@node01.puppeels.mylezeem.com> | |
26 files changed, 1275 insertions(+), 2 deletions(-) | |
create mode 100644 .fixtures.yml | |
create mode 100644 .gitignore | |
create mode 100644 .gitreview | |
create mode 100644 CHANGELOG | |
create mode 100644 LICENSE | |
rewrite README.md (100%) | |
create mode 100644 lib/puppet/provider/barbican_config/ini_setting.rb | |
create mode 100644 lib/puppet/type/barbican_config.rb | |
create mode 100644 manifests/config.pp | |
create mode 100644 manifests/db/mysql.pp | |
create mode 100644 manifests/db/postgresql.pp | |
create mode 100644 manifests/db/sync.pp | |
create mode 100644 manifests/init.pp | |
create mode 100644 manifests/keystone/auth.pp | |
create mode 100644 manifests/logging.pp | |
create mode 100644 manifests/policy.pp | |
create mode 100644 metadata.json | |
create mode 100644 spec/classes/barbican_db_mysql_spec.rb | |
create mode 100644 spec/classes/barbican_db_postgresql_spec.rb | |
create mode 100644 spec/classes/barbican_keystone_auth_spec.rb | |
create mode 100644 spec/classes/barbican_logging_spec.rb | |
create mode 100644 spec/classes/barbican_policy_spec.rb | |
create mode 100644 spec/shared_examples.rb | |
create mode 100644 spec/unit/provider/barbican_config/ini_setting_spec.rb | |
create mode 100644 spec/unit/type/barbican_config_spec.rb | |
create mode 100644 tests/init.pp | |
[root@node01 puppet-barbican-example]# git push origin master | |
Counting objects: 45, done. | |
Compressing objects: 100% (35/35), done. | |
Writing objects: 100% (43/43), 13.32 KiB | 0 bytes/s, done. | |
Total 43 (delta 0), reused 0 (delta 0) | |
To https://github.com/Spredzy/puppet-barbican-example.git | |
cc42919..5afd9ef master -> master | |
64 history | |
[root@node01 puppet-barbican-example]# cd ../ | |
[root@node01 openstack]# git clone https://review.openstack.org/stackforge/puppet-modulesync-configs | |
Cloning into 'puppet-modulesync-configs'... | |
remote: Counting objects: 20, done | |
remote: Finding sources: 100% (20/20) | |
remote: Total 20 (delta 0), reused 10 (delta 0) | |
Unpacking objects: 100% (20/20), done. | |
[root@node01 openstack]# cd puppet-modulesync-configs/ | |
[root@node01 puppet-modulesync-configs]# cat > managed_modules.yml <<EOF | |
> --- | |
> - puppet-barbican-example | |
> EOF | |
[root@node01 puppet-modulesync-configs]# cat > modulesync.yml <<EOF | |
> --- | |
> namespace: Spredzy | |
> EOF | |
[root@node01 puppet-modulesync-configs]# msync update -m "[msync] this has been generated via msync" | |
Syncing puppet-barbican-example | |
Cloning repository fresh | |
Cloning from git@github.com:Spredzy/puppet-barbican-example.git | |
No config file under ./modules/puppet-barbican-example/.sync.yml found, using default values | |
[root@node01 puppet-modulesync-configs]# | |
--------------------------------------------- | |
Module is ready | |
--------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment