Skip to content
Open
Show file tree
Hide file tree
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
Dec 6, 2012
0353fc0
search FHS compliant location for config file
Dec 6, 2012
79aa182
add a spec file to use for building RPMs
Dec 6, 2012
ebbec02
setup.py and add_node.py now accept parameterized classes, but can no…
Dec 7, 2012
01f7245
accept parameters without values
Dec 7, 2012
d9cf15d
update packaging name references from mongo-enc to mongodb-enc
Dec 7, 2012
c9d2b1e
fix typo in sysconfdir
Dec 7, 2012
94a3e21
provide a default host of "none" when running setup.p, so that there …
Dec 9, 2012
aed402c
apply the inheritance in the correct order, so that node overrides do…
Dec 10, 2012
a0e6b7f
supply some comments as to what is happening
Dec 10, 2012
4d1314c
parameterized class support for appending hosts via add_node.py and r…
Dec 10, 2012
1d3d8fa
remove lists from single items to ensure that the data is stored corr…
Dec 10, 2012
d117380
pretty much a complete re-write. mongodb_enc.py is an object oriented…
Dec 12, 2012
a53efd8
rename variable in config file to make more sense
Dec 12, 2012
4b10963
since config.py is gone, add config parsing to mongodb_node_classifie…
Dec 12, 2012
dfff93a
handle key error on inherit
Dec 12, 2012
862dce5
puppet prefers empty arrays to be returned instead of empty strings
Dec 13, 2012
082ea73
update URL in spec file
Dec 13, 2012
e4dd7af
update README.md
Dec 19, 2012
1d0671d
provide empty class for node "none"
Dec 21, 2012
adbc768
re-write mongo_node_classifier.py to follow multiple layers of inheri…
Dec 21, 2012
6a02802
supply note of the new location of code development (yape)
Jan 2, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions README.md
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.
2 changes: 1 addition & 1 deletion conf/conf.ini
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
Copy link
Author

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

mongodb_db_name = instances
mongodb_collection_name = puppet_enc
47 changes: 47 additions & 0 deletions packaging/rpm/mongodb-enc.spec
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

121 changes: 0 additions & 121 deletions scripts/add_node.py

This file was deleted.

45 changes: 0 additions & 45 deletions scripts/config.py

This file was deleted.

Loading