search for: hostgroup

Displaying 20 results from an estimated 23 matches for "hostgroup".

2011 Nov 20
2
Foreman API, problem when creating hostgroups
I am trying to create a hostgroup using the Foreman API (foreman-0.4-0.1rc1.noarch): Using perl v.5.14.2, REST::Client et. al., ending up with sending: POST /hostgroups {"name":"api-created- hostgroup","architecture_id":"","medium_id":"","environment_id":&qu...
2013 Feb 14
0
Really need some help:: Weird Issue with external data look up in puppet 2.6.11
Running puppet 2.6.11 opensource on Red Hat 5.6 client. I cannot explain this logically but I have a directory structure like so: /etc/puppet/manifests/hiera/hostgroups/ with directories for each of my application areas like so: *clickz core devel dns icross iswap itch puppet test ubuntu* *What is weird is that if I put anything under the directory named "core", the ext lookup works fine*, but if I move it to another directory or move th...
2011 Oct 11
1
recursive finds
I am trying to supplement and ultimately provide a patch for ''foreman'' which is an adjunct to puppet. Essentially, there is a Hosts class which belongs_to Hostgroup and Hostgroup class has a column called ''ancestry'' which is actually a Hostgroup (probably what is referred to as STI but I am not sure) and thus within Foreman, nesting Hostgroups is not uncommon. Thus I could have a Host that is called "ServerA", that belongs to &quot...
2012 Oct 26
2
Using regex to match hostnames in hiera
...ided to try out hiera as an alternative.  It seems like a nice tool, but in my case there is a very big downside - the inability to match the fqdn based on a regular expression.  This was brought up in a previous thread[2]. As an example, here is my existing extlookup configuration from site.pp: $hostgroup = regsubst($hostname, ''-*\d+$'', '''') $extlookup_datadir = "/etc/puppet/environments/${environment}/manifests/extdata" $extlookup_precedence = [ ''hostnames/%{fqdn}'', ''hostgroups/%{hostgroup}'', ''common''...
2011 Mar 11
9
Why is it so hard to make a sane nagios server config?
...service by a nagios server, without needless repetition. Let me explain how my non-automated nagios3 server is configured: Each service is declared once per type (or type+role, but there are very few types distinguished by role, so we''ll ignore that for now). Services are members of hostgroups and servicegroups, and hosts join hostgroups in order to activate monitoring. Servicegroups are mostly used for sorting in the Web UI. Now let''s look at how Puppet "wants" to configure Nagios: Each host exports a unique service for each of the checks it should be subject t...
2008 Nov 14
0
Why no hostgroups parameter for nagios_host types?
Hi, so I''m trying to use the built in nagios_host type and there appears to be one huge glaring hole - the lack of a hostgroups parameter. And before anyone asks why I can''t use the nagios_hostgroup type, if someone can tell me how I can collect members without having to manage the hostgroup members manually, that would be fantastic. There''s a servicegroups parameter for services, how has hostgroups bee...
2012 Jul 17
2
puppet host tagging
...nfiguration and architecture that i want to tag them with "tag2" . and so on and so on . lets say i have would like to perform some action (run service -insure => latest ) only on tag1 . is there a way to perform this action within foreman ? i know i can do do group actions with "Hostgroup" but a host can belong to only one hostgroup . what happens if i want a host to belong to more that 1 group ? . i hope that my question is clean . thank you for any help . -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To vi...
2012 Jun 12
1
Nagios hostgroup collation
Hi everyone, I am reconsidering how I am using the Puppet nagios functionality, at the moment I am creating one service for each check on each host. A lot of them are identical, and would be better tied to hostgroups to simplify my config. Namely, I have about 5,000 checks in there now which will go up to about 20K over the next month, and it''s taking about 5-10 minutes for a Puppet agent run on the nagios server now. I''ve tried running through the spaceship operator to collect hostgroup memb...
2011 Nov 18
0
Setting nagios hostgroups based on included classes
...efinition is repeated many times, once per node I''d much rather configure nagios like most people would do it if they weren''t generating their configs. Rather than having 100 service definitions for 100 webservers, they have 1 service definition that applies to 100 hosts, or to 1 hostgroup that has 100 nodes in it. Here''s the problem: I can''t think of anything to put in the apache class that will result in a host being in the "apache" nagios hostgroup (which ultimately is set by a comma delimited string). That''s because: - an element in a comma...
2012 Jan 09
0
node parameters
I''ve been using foreman as an ENC and assigning node parameters for some time and it was clearly working but it apparently broke somewhere along the way and I can''t tell why. Here''s part of the modules/sudoers/manifests/sudoers_hostgroup.pp class sudoers::hostgroup { case hostgroup { default: { file{"/etc/sudoers.d/admins_web": ensure => present, owner => root, group => root, mode => 0440, source => "puppet:///modules/sudoers/admins_web&quot...
2012 Feb 06
3
Passing class parameters to hiera
...Error 400 on SERVER: Invalid tag "sudo(''webapp'')" at /etc/puppet/manifests/site.pp: 19 on node cat /etc/puppet/manifests/site.pp ( portion of file ) =================================== node default { hiera_include( "node_classes" ) # Maintained in hostgroups/ <hostgroup>/<site>/<hostname>.yaml } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsu...
2020 Jan 30
3
SSH certificates - restricting to host groups
...resence of a particular extension to permit login. > > But the other big question is the usability of the process for issuing > and using the OpenSSH user certs. What's your idea on this? I hadn't got to the details of the user side, but AFAICS all it requires is a list of user:hostgroup principals to include in the cert for a given user.? This could be kept directly as an attribute of the user, or you could generate it via a level of indirection (user -> group; group -> list of principals or principal suffixes) At the host side, I was thinking of authorizing principals b...
2013 Aug 07
3
Nagios XI + Puppet?
...et manifests are the right place to manage contacts, contact groups, and their use within host and service definitions for notifications. Has anyone made use of the puppet + Nagios XI? Would it be possible to manage notifications within the webUI while still using puppet for generating the host,hostgroup,service configs? Pagerduty isn''t an option for reasons I can''t get into here. Thanks, Ryan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an ema...
2010 Dec 20
2
foreman issue
Hello! I try to use foreman. It''s successfuly import current nodes from puppet storeconfig. Nodes hostname stored in short form, without domain. After that, i run puppet on newly created additional 5 nodes. They shows in foreman with full fqdn. Os, environment, architecture for this nodes not shown. How can i fix this issue? -- You received this message because you are subscribed to
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
...h this puppet install, however that all appears to be working fine aswell... Node ENC details are: $ ./node.rb puppet-test.card.co.uk --- environment: &id001 test classes: - act::products::cms parameters: root_pw: xybxa6JUkz63w location: star-int foreman_env: *id001 hostgroup: linux puppetmaster: puppet When I do a ''*puppet agent -t*'' run on *puppet-test.card.co.uk*, I get the following logged: [gavinw@puppet-test ~]$ sudo puppet agent -t Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/oracle_sids.rb Info: Loading facts...
2020 Jan 30
5
SSH certificates - restricting to host groups
Hello, I am trying to work out the best way to issue SSH certificates in such way that they only allow access to specific usernames *and* only to specific groups of host. As a concrete example: I want Alice to be able to login as "alice" and "www" to machines in group "webserver" (only). Also, I want Bob to be able to login as "bob" and
2013 Jan 07
3
Error: Could not retrieve catalog from remote server: execution expired
Hi everyone, I recently ran into an issue where my puppetmaster can''t run puppet on itself. It errors out with the following: Error: Could not retrieve catalog from remote server: execution expired Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run I''m running Puppet 3 with passanger and puppetdb (hsql). I''ve tried restarting
2020 Jan 30
6
SSH certificates - restricting to host groups
...a new cert. Eventually it would be nice to move to daily certs with online login (e.g. cashier, step-ca) in which case anyone who needs a new cert can get it themselves instantly.? The main thing stopping me from doing this straight away is your other point: > You have to maintain this user-hostgroup relationship somewhere. Is it > possible for your system to query this information? The inventory system tracks hosts rather than users, but I don't see a big problem putting the user-group relationship into LDAP, even if it only writes out a flat file periodically. However, the system w...
2012 Jun 18
8
Conditional with variable from facter
Hi. I have the following facts available: # facter | grep oper operatingsystem => CentOS operatingsystemrelease => 6.2 Now, if I wish to use conditionals on these facts, I have to do it like this: case $operatingsystem {} case $::operatingsystemrelease {} I''m puzzled as to why can''t I just use $operatingsystemrelease, and what do these two semicolons mean? Thank
2012 Nov 01
2
Does anyone know how to evaluate a node hostname in nodes.pp file?
Does any one know how to evaluate a node hostname in the nodes.pp file? for example something like this.. node ''node1.com'', ''node2.com'', ''node3.com'' { case node.name { ''node1.com'' : { include solaris } ''node2.com'' : { include redhat } ''node3.com'' : { include aix