similar to: Custom fact or function ? looking for opinion

Displaying 20 results from an estimated 8000 matches similar to: "Custom fact or function ? looking for opinion"

2012 Oct 29
2
array and string
hi all, I have an array and i would like to convert it into a string format. e.g. $server = ["node1", "node2", "node3"] when I write my puppet codes exec { "myscript -S $server": path => XXXX } my $server becomes a continual string like: "node1node2node3", instead of "node1 node2 node3". How can i have a delimiter of space in
2012 Nov 20
2
managing java with puppet (RH)
Hi all, In my systems (SL 6.3, RH like) I''m installing Oracle''s Java. I''m managing the package and several links under /etc/alternatives with puppet, but for configuring it, all the ''official'' docs recommends ''alternatives''. I''ve been looking for some module which already deals with it, but I''ve not found any...
2013 Nov 27
1
Warning: Unable to fetch my node definition, but the agent run will continue:
I am getting the following error when executing puppet agent --test from the node to force it to get its node definition [root@localhost puppet]# puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Failed to find puppetnode.localdomain via exec: Execution of ''/etc/puppet/snc_enc.py
2011 Oct 18
2
Puppet node fails to pass facts to master
Hello Puppet list, I am taking over the puppet configuration of a sysadmin who left, and am having troubles deploying puppet to a new node. We are using puppet v2.7.3 both on the client and the puppetmaster, on Ubuntu 10.10. The node asks for a certificate fine, and I signed it on the puppetmaster. For the following logs extract I ve replaced the FQDN of my node by puppet.example.com. When doing
2013 Nov 04
0
brainstorm ldap type/provider
hi, Just thinking how i could manage ldap server with puppet, using dynamic configuration. I would follow the next step : In the manifest : install required packages for ldap server doing a ''site specific'' basic configuration, meaning pushing a custon /etc/<ldapbasedir>/slapd.d develop some ldap type, to tweak online the ldap server. I think this would only be used
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
I''m trying to make puppetlabs_spec_helper runs on Windows 7 to test my Puppet modules. Is this supported ? Because I encountered some problems: 1. symlinks were not created on Windows 7 (even if the functionnality are availabe). To manage that I added to rake_tasks.rb an ugly function: def make_link(source,target) ruby_platform =
2013 Oct 31
2
I'm to a dead end
Hi all, I am new to Puppet and now I do some test with 2 Virtual Machines running Centos 6.4 and puppet 3.3.1 And I manage to sign the client cert, but still I can not get any file updated on the client VM. If I run the client in test mode puppet agent --server=p-master.localdomain --noop --test There is no errors in the output. Info: Retrieving plugin Info: Caching catalog for
2013 Mar 07
2
Puppet Dashboard changed reports view error
Hello Puppet Users ! We encounter a problem with the dashboard on this URI : /reports/changed The /reports works fine with ~130000 reports (up to 3 months and auto-cleaning with rake reports:prune job) I make a reports:prune:orphaned, juste in case, but without any success. The most recent change on the server was the puppetmaster upgrade from 3.0.2 to 3.1.0. Here is the dashboard error log
2013 Oct 08
5
user management define once an add if required on server
Dear all I am looking for a solution for a module to define alle possible user and then install the one or more user from that module if needed on a server, but not all of them. My idea is something like this. Can I define a user in the nodes.pp at a special Server to install that user? init.pp class admin_user::group { group { "group1": gid => "888",
2012 Oct 11
1
Noob setting up, hitting SSL Errors
I''m a noob puppeteer. I''m following the directions here: http://shapeshed.com/setting-up-puppet-on-ubuntu-10-04/ I''m running two identical Ubuntu VMs. I can apparently set up the master ok. But, when I try to connect with an agent I get the following error from the agent: Error: Failed to apply catalog: SSL_connect returned=1 errno=0 state=SSLv3 read server
2018 Sep 10
4
schema enhancement recommandation?
Hi Rowland, thank you for your fast answer. More see below. On 10.09.2018 19:18, Rowland Penny via samba wrote: > [..] ERR: Object class violation : "objectclass_attrs: attribute >> 'macAddress' on entry 'CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan' >> does not exist in the specified objectclasses!" on DN >>
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
Morning All I''m trying to use Hiera with Puppet 3.0 to streamline some of my module configuration... However I''m having issues using the ''*%{::clientcert}*'' variable as part of the hierarchy... Currently, my *hiera.yaml* file looks like: --- :backends: - yaml - json :yaml: :datadir: /etc/puppet/hieradata :json: :datadir: /etc/puppet/hieradata
2012 Jul 04
4
Identifying host OS in an ENC
Hi all, We have a mixed Linux and Windows environment and have so far just been using Puppet on our Linux servers. Having configured the inventory service, we''ve got an auditing script that uses the data to report on things like OS version, RAM, etc. This is all so nice that we''d like to extend it to auditing our Windows infrastructure. However, at this point in time, we have
2013 Aug 27
7
The Foreman: Query facts from ENC PuppetDB?
I''ve been using PuppetDB as an ENC for a while, but I haven''t really utilized it for stored configs or anything. I was mostly interested in replacing Dashboard''s reporting capabilities, but PuppetDB doesn''t yet do anything (that I can see) with reports. So I''m currently looking into setting up a separate Foreman server. I saw the script mentioned
2012 Sep 26
6
Puppet 2.7, hiera 1.0 and hiera as an ENC
This is the situation I have: All my hosts are the* same OS.* All my host are in the* same puppet environment,* so I cannot use %{environment} I have a module that sets all the *basic* functionality for the OS, resolution, authentication, security, packages, etc I have a module for each application hosted. At the moment all the ''data'' is in Puppet, mostly in parametrised
2016 Jun 05
4
Deletion of destination files
Hi to all rsync users. rsync's `--delete' option works fine in the following example: I'm sending all the content of /home/rodolfo from machine1 to /home/rodolfo in machine2: $ rsync --dry-run -vrtul --delete --exclude='/.*' . 192.168.0.2:/home/rodolfo , and --delete works perfectly. Instead, in this other example: $ rsync --dry-run -vrt --delete --modify-window=1 file1
2013 Jan 22
6
Security considerations for basing decisions on facts
Hello, Let''s consider the scenario when a client node in a puppet environment gets compromised. In case some of the puppet modules make decisions based on agent facts, these modules are potentially exposed to abuse from the malicious puppet agent. For example, if a class has: if $some_fact == ''some value'' { # deploy some configuration } then the compromised node
2009 Jul 08
1
rumours of openssh vulnerability
Hi all, There are rumours flying around about a supposed vulnerability in OpenSSH. Two details which I've seen mentioned many times are (a) that this exploit was used to break into a RedHat system running OpenSSH 4.3 plus backported security patches, and (b) that "recent" versions of OpenSSH are not affected; but it's not clear if there is any basis for these rumours. Given
2019 Mar 14
8
How to automatically store the macAddress in AD
Hi list, Does someone know a way to automatically store the hwaddress in the AD? I'm using Veyon in my school to manage the students PCs and if the hwadress is populated in the AD, the Room configuration can be set with AD otherwise i have to manage rooms manually. I'm using samba4 with bind and isc-dhcp-server are on the same server. Can we use scripts or some ways? thanks in advance
2011 Sep 23
3
ldap ENC extension to use environment parent node
Hi, We currently use ldap ENC to set server role variables and extlookup to set domain or environment variables. I have a suggestion regarding ldap use as an ENC - if a node within ldap has the environment attribute set then it should inherit/mixin (if available) from a node named after it''s environment. It could be populated with only puppetVar type attributes so that any environment