search for: file_lin

Displaying 14 results from an estimated 14 matches for "file_lin".

Did you mean: file_link
2012 Mar 29
4
stdlib module not working
I´m trying to utilize the new stdlib module, but got stuck after installation on my puppet server. I´ve tried to use the included test file file_line.pp on the server, but it´s only creating the file - but not managing the content. the same problem on my clients (the new provider file_line has been synced), it´s just not working: file_line { ''puppet master host entry'': line => ''172.16.24...
2012 Sep 27
0
File_line
Hello, Currently develop a module for the packet smartd. But I''m using the resource file_line, but displays the following message when using the puppet parser: "err: Could not parse for environment production: Syntax error at ''{'', expected ''}'' at / etc / puppet / modules / smartd / Manifests / init.pp: 66 '' I really can not see my mistake...
2012 May 04
16
forcing user resource provider to be local files only?
I see that there are an assorted bunch of "provider" types for resource type user. Are there not any "local file" providers for it? I have need of ensuring that certain local user accounts get created on all machines, reguardless of what the system "/bin/password" and "useradd" type mechanisms are set to. It would be really nice to find a pre-written
2014 Oct 07
0
fstab dilemma - pounding on file_line and augeas
...blem: The order of the mount points in /etc/fstab makes a difference. I had /usr/local before /usr, and at boot, the mount of /usr/local failed because the mount point did not (yet) exist. So I need to ensure the line for /usr/local comes AFTER the line for /usr. HOW TO DO IT ? I tried stdlib / file_line with the "after" parameter, bit it does not work ! (I thought I opened an Issue, but I cannot find it) My next thought was "augeas mv <PATH> <OTHER PATH>" but I cannot get it to work (yet). Looking for clues / suggestions about how to order the mount points in /etc...
2012 Jun 04
3
Update .k5login with Puppet
Hi, can you anyone suggest me how can i update .k5login to append new entry or remove existing line when i tried using k5login { ''/root/.k5login'': ensure => present, path => ''/root/.k5login'', principals => ''dhaval@MYREALM.COM'', } it completelty removes all lines form k5login and put
2013 Aug 13
2
Collector not realizing own exported resources when filtering on tags
...quot;${::fqdn}-ssh-pubkey" : tag => $dsitename, ensure => present, host_aliases => [ $::hostname ], key => $::sshrsakey, name => $::fqdn, type => ''ssh-rsa'', } @@file_line{ "${::fqdn}-shosts.equiv" : tag => $dsitename, path => "/etc/ssh/shosts.equiv", ensure => present, line => "+${::fqdn}", } notify { ''testmessage'' : message => "Downcased...
2013 Jan 04
5
How to manage one line in a file by puppet
Hi, I want to write a puppet module for xen on Debian. This module will need to manage one line in the file /etc/default/grub, namely the line starting with "GRUB_CMDLINE_XEN=". Currently I want to leave the rest of the file untouched. Which would be the best way to do this? I see two options: a) Do some `sed` magic on the file in a `exec` call. Downside: puppet won''t notice
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to BPB adjustments, but not only that. It expects 3 small patches I sent earlier (they are included for easy reference, patches 1-3/4). The changes introduced are: 1) file and boot sector use separate options to control load address and jump address (if applicable). Options are as described below: *
2013 Jun 10
2
Best way to add APC and change size of apc.shm_size
Hello!! I am a new user to puppet and I need to use puppet to install apc and change the size of apc.shm_size to 64. I have found a module here: https://github.com/ridonkulous/puppet-apc However, when I add the module in, it does not work. I get errors on the puppet code. Is there a way to just install the apc package normally and just use puppet code to change apc.shm_size? Thanks in
2012 Apr 05
3
newly added ruby function executes on the server instead of the node
Hi, 1) I added this test function tom my /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb : *module Puppet::Parser::Functions newfunction(:write_line_to_file) do |args| filename = args[0] str = args[1] File.open(args[0], ''a'') {|fd| fd.puts str } end end* 2) I invoked it in the
2013 Jan 24
2
Augeas file line edit please help
what i thought would be a simple edit using augeas is turning out to not be so straight forward, can anyone please help ? the plan is to edit sendmail.cf and change the default DS to DShostname.domain class mail { $key = DS service { ''sendmail'':; } augeas { "sendmail.cf/$key": context =>
2012 Aug 28
4
using puppet augeas to add entry in /etc/syslog.conf
Hi , I"m trying to add a entry in /etc/syslog.conf using puppet augeas like this " *.warning;mail.none;authpriv.none;cron.none @syslog_host" , seems the way to do this with augeas is : augeas { "syslog_conf": lens => "syslog.lns", incl => "/etc/syslog.conf",
2013 Apr 11
4
Duplicate Declaration of resource (editing contents of same file in two diiferent module)
Hi all, I am writing two modules abc and xyz. In both the modules i have to change common "test.txt" file,here i use template (.erb) file to changing the contents. In both abc and xyz the contents of "test.txt" file is different, if i declare file resource for "test.txt" file in two different modules it gives duplicate declaration of resource error. For the
2013 Jan 25
4
Dynamic yum.conf 'exclude' line
Hi All, I have finally switched to using hiera (worthy goal!) and I am looking for a flexible way to manage the ''exclude'' line in /etc/yum.conf. I want to be able to specify from different classes RPMs to be excluded in /etc/yum.conf, then build the exclude line from all those classes that set an exclude. In my hiera hierarchy, I use %{calling_module}, but I actually modify