Puppet Forge

PuppetForge 0.4.0

Module jamtur01/noah

Download

Module description

Description

A collection of Puppet bits and pieces for working with Noah (https://github.com/lusis/noah)

Requirements

  • Noah
  • puppet

Installation

Install puppet-noah as a module in your Puppet master’s module path. You then need to use pluginsync to sync the functions and fact onto your master.

To use the ENC you can copy the ENC script to somewhere appropriate and enable external node configuration in your Puppet master’s puppet.conf configuration file.

Usage

ENC

The module contains an ENC (External Node Classifier) for Noah in bin/noah_enc. The ENC connecs to a Noah server and returns node classification data. It connects either to a hard-coded Noah URL (defaulting to http://localhost:9292) which you can change in the ENC or override by setting the NOAH_URL environmental variable.

The ENC queries the hosts defined on a Noah server via the Host API and returns a list of classes based on services defined on that host, for example if the host has the services mysql and redis then the ENC will return the classes:

  • mysql
  • redis

See information on ENC’s here

The noah_get function

The noah_get function returns data from a Noah instance. It can use the Host, Service, Configuration and Application APIs to do this. It requires the rest-client gem to work correctly:

$ gem install rest-client

You can call the function like so by specifying the URL, the type of data, and the name of the data item being returned:

$foo = noah_get("http://localhost:9292", host, bar)

This will return data about the bar host in the form of a hash and assign it to the variable $foo. The function accepts the following data types:

  • host
  • application
  • service
  • configuration

You can see the full list of applicable APIs here.

The noah_put function

The noah_put function sends data to a Noah server. It can use the Host, Service, Configuration and Application APIs to do this (although its use of the Service and Configuration API is currently somewhat limited). It requires the rest-client gem to work correctly:

$ gem install rest-client

You can call the function like so by specifying the URL, the type of data, and the data being sent:

noah_put("http://localhost:9292", host, up)

This will create a host named using the value of the fqdn fact with a status of up (valid statuses are up or down).

You can also create a new application:

noah_put("http://localhost:9292", application, foo)

This will create a new application called foo on the Noah server.

You can create a new service:

noah_put("http://localhost:9292", service, mysql)

This will create a new service called mysql with a status of up. As yet you can’t control the service or host status of the service being created.

Or you can create configuration items:

noah_put("http://localhost:9292", configuration, bar)

This creates a configuration item called bar with a format of string and a value of bar. Further work is needed to extend this to support the full set of naming and data types avaialble. Consider this an MVP.

Noah facts

The noah_data fact connects to the Noah server and returns all of the configurations items via the Configuration API as fact values. As Facter currently only supports strings as fact values this means some data isn’t yet in an ideal format.

Release notes for version 0.0.1

Initial release

Module's releases

Popular Tags

a2dismod a2enmod accelerator access acl activemq agent agnostic alerts aliases amanda amavis amazon amqp analysis and android antivirus apache apache2 apple application applications apt apticron archive asadmin Atlassian augeas auth authconfig authentication authoritative automation availability aws backup backuppc bacula balance bash basic benchmark bigtable bind blog boundary bprobe bugzilla build bzr c++ ca caching Cacti capistrano cassandra ccollect CentOS cern certificate certificate_authority certificates certs cfn check chrislea ci cirrus clamav cleanup cli client cloud cloud-provisioner cloudformation cloudkick cluster cobbler collectd common compile compiler composite_namevars concat concatenate console control controltier create_resouces cron curl CVS cyber dashboard data database datadog db debian defaults denyhosts deployment desktop developer development device dhcp digest directory distributed dms dns dnsmasq dovecot dpkg dpm duo dynamic dynect ec2 editor elasticsearch email ENC enterprise environment ESN example42 exim experimental ext f5 face facter factor facts fail fail2ban farm fcgi fcron fedora FHS file files fileserver filesystem find firehol firewall flowdock FMRI foo foreman fpm freebsd fsck ftp func function ganglia gcc gconf gearman gearman-job-server gearmand gem generation generic Gentoo gfx git gitolite glassfish Glider gLite glusterfs gnome2 graphics greylisting grid Group groups ha hadoop haproxy hardware hbase hdd hdfs headless heartbeat hg hids high-availability homebew host host-keys hosts HP htdigest htpasswd HTTP httpd https icinga ignore imagemagick imap info information infrastructure initr interface inventory ip6tables iphone iproute ipset iptables ipvs irc irqbalance iscsi jabber java jdk jenkins jenkins-ci Jira joyent jre jsp keepalived kerberos kickstart krb5 kvm kwalify LANANA languages lcg lcgutil ldap library libvirt libzypp limits limits-conf linux lmsensors load load-balancing loadbalancer locale locales lock logging logical_volume logrotate logs logwatch LSB lucid LVM mac mail mailalias maintenance make manager manages_members mariadb master-election mcollective mediawiki memcached message message_bus messaging meta metche mfa middleware mirror mnx mobileconfig module modules mon mongodb monit monitor monitoring Monitoring and Trending mosh motd mount mountpoint mounttab mrepo mta multi multipath multiple sites mumble munin mysql mysql-proxy mysql_proxy mysqlproxy naginator nagios namenode nameserver netinstall network network_config network_interface networking NFS nginx nmap noah node nodejs nosql notification nova nrpe ntp ntpd nullmailer OEL openfire opennebula openssh openssl openstack OpenSUSE openvpn openvz operating operating system operating systems operatingsystem operatingsystems operations opsview orchestration os ossec osx ovh pacemaker package package management packages packaging PAM pam_access passenger password pe pear percona performance perl permissions pflogsumm php phpqa phpqatools phpsysinfo phptools physical_volume pick pkgin planet platform pop posix postfix postgres postgresql postmark ppa probe proc processor production-ready profile_d proftpd Programming Languages Proliant prosvc provider provisioner provisioning proxy psumac psumac2012 puppet puppetlabs puppetmaster puppi pure-ftpd pureftpd pushover pwgen PXE python qa queue rabbitmq rack raid rails rbenv redhat redis-server registry relay replication repo report reporting repositories repository request resolv resolv_conf resolvconf resolver resources rest restart rhel rhel5 rhel6 role route53 RPM rpmbuild RRD rsnapshot RSpec rsync rsyslog rt ruby rubygems runtime samba satellite scm screen scribe scrumworks search SecretServer security sendmail server service services servlet settings shell shortcut sieve sip sipfoundry sipx sipxecs SMF smokeping smtp snmp snmpd solaris solr sonar spam spamassassin sphinx sphinxsearch splunk sql sqlgrey sqlite ssh sshd ssl stages standard standards statistics stdlib stomp storage storeconfigs subversion subversion-client sudo SuSE SVC svn svnrepo symfony synchronisation sysctl syslog syslog-ng system systems tar tcp test Testing tftp thin thrift thycotic ticketing tidy time timezone tls tmpfs tmpwatch tomcat tomcat6 tool tools tracker" traut Trending tuning tunnel two type ubuntu udp unbound unconfigured untar user users utilities utils validation vcs version vhost vim virtual virtual-environment virtualhost virtualization vm vmtools vmware vmware-tools vmware_tools vnc VOIP volume volume_group voms vpn wars web web servers webapp webapp-config webserver webservers wget wiki win32 windows wordpress x x11 xen xinetd xmpp yast yum zeromq zones zookeeper zypp zypper