Introduction
Arnold: the provisionator
This is the start of a Razor provisioning system.
Currently, all it does is provide a web service that will read & write YAML files and a few functions to read them and apply classes to a node.
Very soon, I plan to provide Razor functionality to spin up new instances after classifying them, and then it will be a simplistic self service provisioner.
Configuration
- Installing
- It's a Puppet module, yo! Copy the
arnold
subdirectory to your modulepath. - Alternately, you can install by hand by running the little installer script.
- It's a Puppet module, yo! Copy the
- Setup the server
- Classify your server with
arnold::provisionator
and apply. - Configure by editing
/etc/arnold/config.yaml
- You will probably want to point the
datadir
to wherever you've configured Hiera to use. - You may configure Arnold to reuse Puppet certs if you wish.
- If you choose to generate your own SSL certs, drop them in /etc/arnold/certs
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
- You will probably want to point the
- Point a web browser at the configured port
- Clicky clicky
- List nodes, create nodes, modify nodes, etc
- Enable arnold for clients:
- In
site.pp
on your master, outside of any node definitions, simply call thearnold()
function. - Alternately, you can classify your nodes with
arnold
- If you place this class in your default group, it will automatically be applied to all nodes.
- In
- Classify your server with
Provisioner backend configuration
Currently only the CloudProvisioner provisioning backend exits. You can enable it by
adding a stanza like this to your config.yaml
backend: CloudProvisioner
keyfile: ~/.ssh/private_key.pem
enc_password: <password>
If a backend is not configured, Arnold will not perform any provisioning actions. It is entirely useful like this, as it will instead only manage the Hiera datafiles.
Limitations
- It does not currently manage parameterized classes.
- Razor support is not yet included.
Contact
- Author: Ben Ford
- Email: [email protected]
- Twitter: @binford2k
- IRC (Freenode): binford2k
Credit
The development of this code was sponsored by FBL Financial.
License
Copyright (c) 2013 Puppet Labs, [email protected]
Copyright (c) 2013 FBL Financial, [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.