-
Notifications
You must be signed in to change notification settings - Fork 5
Add support for parameterized classes (puppet 2.6+ support) #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
drwahl
wants to merge
22
commits into
bcarpio:master
Choose a base branch
from
drwahl:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
76ce379
default to localhost for mongodb instance
0353fc0
search FHS compliant location for config file
79aa182
add a spec file to use for building RPMs
ebbec02
setup.py and add_node.py now accept parameterized classes, but can no…
01f7245
accept parameters without values
d9cf15d
update packaging name references from mongo-enc to mongodb-enc
c9d2b1e
fix typo in sysconfdir
94a3e21
provide a default host of "none" when running setup.p, so that there …
aed402c
apply the inheritance in the correct order, so that node overrides do…
a0e6b7f
supply some comments as to what is happening
4d1314c
parameterized class support for appending hosts via add_node.py and r…
1d3d8fa
remove lists from single items to ensure that the data is stored corr…
d117380
pretty much a complete re-write. mongodb_enc.py is an object oriented…
a53efd8
rename variable in config file to make more sense
4b10963
since config.py is gone, add config parsing to mongodb_node_classifie…
dfff93a
handle key error on inherit
862dce5
puppet prefers empty arrays to be returned instead of empty strings
082ea73
update URL in spec file
e4dd7af
update README.md
1d0671d
provide empty class for node "none"
adbc768
re-write mongo_node_classifier.py to follow multiple layers of inheri…
6a02802
supply note of the new location of code development (yape)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,16 +1,3 @@ | ||
| # Puppet ENC Using Mongodb | ||
| THIS PROJECT HAS BEEN MOVED TO https://github.com/drwahl/yape.git | ||
|
|
||
| ## Documentation | ||
|
|
||
| Please refer to the [Wiki](https://github.com/bcarpio/mongodb-enc/wiki). | ||
|
|
||
|
|
||
| ## Project Status | ||
|
|
||
| This project is still in **Alpha**. This means at any given time the code is under active development. There is still one big change coming where I change the mongodb schema. I currently don't like how I have the mongodb laid out. If you are using this code and would like to make feature requests please do so in the issue tracker. | ||
|
|
||
| ## Author Info | ||
|
|
||
| Website: [Brian Carpio](http://www.briancarpio.com) | ||
|
|
||
| Twitter: [Linsys](https://twitter.com/linsys) | ||
| This originally started as a fork of bcarpio/mongodb-enc, however it has turned in to a complete re-write. The only thing that has been kept is the basic schema. Since the two code bases no longer share any code in common, I decided to break off the fork and create an entirely new project with a new name. All further development will be completed at https://github.com/drwahl/yape.git. |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [mongodb_info] | ||
| mongodb_servers = arch-mongod-s1-01, arch-mongod-s1-02, arch-mongod-s1-03, arch-mongod-s1-04 | ||
| mongodb_server = localhost | ||
| mongodb_db_name = instances | ||
| mongodb_collection_name = puppet_enc | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| Name: mongodb-enc | ||
| Version: 0.1 | ||
| Release: 1%{dist} | ||
| Summary: MongoDB driven External Node Classifier (ENC) | ||
| License: GPLv3 | ||
| URL: https://github.com/drwahl/mongodb-enc | ||
| Group: System Environment/Base | ||
| Source0: %{name}-%{version}.tar.gz | ||
| BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) | ||
| BuildArch: noarch | ||
|
|
||
| Requires: python | ||
| Requires: pymongo | ||
| Requires: PyYAML | ||
| Requires: python-argparse | ||
|
|
||
| %description | ||
| A set of scripts which can be used to leverage mongodb as an external node | ||
| classifier for puppet. | ||
|
|
||
| %prep | ||
| %setup -q -n %{name} | ||
|
|
||
| %install | ||
| rm -rf %{buildroot} | ||
|
|
||
| %{__mkdir_p} %{buildroot}%{_bindir}/mongodb-enc | ||
| %{__mkdir_p} %{buildroot}%{_sysconfdir}/mongodb-enc | ||
| %{__mkdir_p} %{buildroot}%{_localstatedir}/log/mongodb-enc | ||
| cp -r ./scripts/* %{buildroot}%{_bindir}/mongodb-enc/ | ||
| cp -r ./conf/* %{buildroot}%{_sysconfdir}/mongodb-enc/ | ||
|
|
||
| %files | ||
| %{_bindir}/mongodb-enc/* | ||
| %{_sysconfdir}/mongodb-enc/* | ||
|
|
||
| %pre | ||
|
|
||
| %post | ||
|
|
||
| %clean | ||
| rm -rf %{buildroot} | ||
|
|
||
| %changelog | ||
| * Thu Dec 6 2012 David Wahlstrom <dwahlstrom@classmates.com> - 0.1-1 | ||
| - initial packaging of mongodb-enc | ||
|
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a server that is likely to be more useful globally as the default mongodb_servers