debian/0000755000000000000000000000000012006037474007171 5ustar debian/watch0000644000000000000000000000015112006036512010207 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/foremancli .*/foremancli-(.*).tar.gz debian/source/0000755000000000000000000000000012006036512010461 5ustar debian/source/format0000644000000000000000000000001412006036512011667 0ustar 3.0 (quilt) debian/foremancli.ronn0000644000000000000000000000664212006037401012204 0ustar foremancli(1) -- comandline search interface to Foreman ======================================================= ## SYNOPSIS `foremancli` ## DESCRIPTION Query Foreman server for stored node information. ## OPTIONS * `-d`, `--debug`: Output more information * `-u`, `--user` : Foreman user. Instead of providing the user via the command-line you can also set the `FOREMAN_USER` environment variable. The user specified via the command-line takes precedence over the environment variable. * `-p`, `--pass` : Foreman password. Instead of providing the password via the command-line you can also set the `FOREMAN_PASSWORD` environment variable. The password specified via the command-line takes precedence over the environment variable. * `-s`, `--server` : Foreman Server URL. Instead of providing the URL via the command-line you can also set `FOREMAN_SERVER` environment variable. The url specified via the command-line takes precedence over the environment variable. * `--json`: JSON output * `--yaml`: YAML output * `--status`: Foreman status * `--custom` : Custom COLLECTION string, see: http://theforeman.org/projects/foreman/wiki/API for more information * `--architectures` : Retrieve a list of architectures * `--common_parameters` : Retrieve a list of common_parameters * `--config_templates` : Retrieve a list of config_templates * `--domains` : Retrieve a list of domains * `--environments` : Retrieve a list of environments * `--fact_values` : Retrieve a list of fact_values * `--hosts` : Retrieve a list of hosts * `--hostgroups` : Retrieve a list of hostgroups * `--media` : Retrieve a list of media * `--puppetclasses` : Retrieve a list of puppetclasses * `--reports` : Retrieve a list of reports * `--roles` : Retrieve a list of roles * `--settings` : Retrieve a list of settings * `--lookup_keys` : Retrieve a list of lookup_keys * `--dashboard` : Retrieve a list of dashboard * `--operatingsystems` : Retrieve a list of operatingsystems * `--subnets` : Retrieve a list of subnets * `--ptables` : Retrieve a list of ptables * `--users` : Retrieve a list of users * `--auth_source_ldaps`: Retrieve a list of auth_source_ldaps * `--hypervisors`: Retrieve a list of hypervisors * `--lookup_values`: Retrieve a list of lookup_values * `--smart_proxies`: Retrieve a list of smart_proxies * `--statistics`: Retrieve a list of statistics * `--usergroups`: Retrieve a list of usergroups * `--audits`: Not implemented * `--bookmarks`: Not implemented * `-h`, `--help`: Show help message ## ENVIRONMENT Instead of specifying server credentials on the command-line you can specify following environment variables: * `FOREMAN_SERVER`: Foreman Server URL * `FOREMAN_USER`: Foreman user * `FOREMAN_PASSWORD`: Foreman password The options specified on the command-line take precedence over `ENVIRONMENT VARIABLES`. ## FILTERS Please see http://theforeman.org/projects/foreman/wiki/Search_API for more information ## Examples foremancli --hosts "domain = domain.com AND class = squid" foremancli --hosts "domain = domain.com AND facts.architecture = x86_64 AND class = module::class--classes name = squid"` foremancli --domains "name = domain.com" debian/copyright0000644000000000000000000000224412006036512011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: foremancli Source: http://theforeman.org/projects/foreman/wiki/Foremancli Files: * Copyright: 2011 - 2012 Brian Gupta License: GPL-2+ Files: debian/* Copyright: 2012 Ulrich Dangel License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/changelog0000644000000000000000000000045512006037417011044 0ustar foremancli (1.0-2) unstable; urgency=low * [89dec27] Update foremancli manpage -- Ulrich Dangel Tue, 31 Jul 2012 22:24:47 +0200 foremancli (1.0-1) unstable; urgency=low * Initial release (Closes: #678572) -- Ulrich Dangel Mon, 23 Jul 2012 03:11:50 +0200 debian/rules0000755000000000000000000000111612006036512010240 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_clean: rm -f debian/foremancli.1 dh_auto_clean override_dh_install: ronn -roff debian/foremancli.ronn dh_auto_install debian/patches/0000755000000000000000000000000012006036512010610 5ustar debian/patches/remove_rubygems.diff0000644000000000000000000000046712006036512014663 0ustar Description: Remove require 'rubygems' from bin/foremancli Upstream is not interested in removing require 'rubygems' Author: Ulrich Dangel --- a/bin/foremancli +++ b/bin/foremancli @@ -144,7 +144,6 @@ exit 1 end -require "rubygems" require "rest_client" require "json" require "yaml" debian/patches/series0000644000000000000000000000002512006036512012022 0ustar remove_rubygems.diff debian/foremancli.manpages0000644000000000000000000000002312006036512013010 0ustar debian/foremancli.1debian/control0000644000000000000000000000240312006036512010563 0ustar Source: foremancli Section: admin Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Ulrich Dangel DM-Upload-Allowed: yes Build-Depends: debhelper (>= 9~), gem2deb (>= 0.3.0~), ruby-ronn Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-foremancli.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/foremancli.git;a=summary Homepage: https://github.com/ohadlevy/foreman/blob/master/extras/cli/foremancli XS-Ruby-Versions: all Package: foremancli Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-rest-client, ruby-json Description: commandline search interface to Foreman This is a commandline tool for searching node information stored in a Foreman server. . foremancli can be used to search and access all the stored information in a Foreman server and present the data in text, json or yaml formats. . Foreman is a server application that can be used to provision bare metal, virtual and cloud servers, and integrates with the Puppet configuration management system to provide full life cycle managements of one's server infrastructure. debian/compat0000644000000000000000000000000212006036512010357 0ustar 7