logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

foremancli - comandline search interface to Foreman

Description

       Query Foreman server for stored node information.

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 ENVIRONMENTVARIABLES.

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"

                                                  February 2019                                    FOREMANCLI(1)

Filters

Name

foremancli - comandline search interface to Foreman

Options

-d, --debug
              Output more information

       -u, --userUSER
              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, --passPASSWORD
              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, --serverURL
              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

       --customCOLLECTION
              Custom  COLLECTION   string,   see:   http://theforeman.org/projects/foreman/wiki/API   for   more
              information

       --architecturesfilter
              Retrieve a list of architectures

       --common_parametersfilter
              Retrieve a list of common_parameters

       --config_templatesfilter
              Retrieve a list of config_templates

       --domainsfilter
              Retrieve a list of domains

       --environmentsfilter
              Retrieve a list of environments

       --fact_valuesfilter
              Retrieve a list of fact_values

       --hostsfilter
              Retrieve a list of hosts

       --hostgroupsfilter
              Retrieve a list of hostgroups

       --mediafilter
              Retrieve a list of media

       --puppetclassesfilter
              Retrieve a list of puppetclasses

       --reportsfilter
              Retrieve a list of reports

       --rolesfilter
              Retrieve a list of roles

       --settingsfilter
              Retrieve a list of settings

       --lookup_keysfilter
              Retrieve a list of lookup_keys

       --dashboardfilter
              Retrieve a list of dashboard

       --operatingsystemsfilter
              Retrieve a list of operatingsystems

       --subnetsfilter
              Retrieve a list of subnets

       --ptablesfilter
              Retrieve a list of ptables

       --usersfilter
              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

Synopsis

foremanclioptions

See Also