On Wednesday, May 9, 2012 11:55:01 AM UTC-7, Gary Larizza wrote:
Philip,
You can use Augeas to do this, or look at a custom file_line type in the
Puppetlabs-stdlib module --
https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb
A followup to this
You'll want to add ensure = present to the file_line resource and then
run it again. That should help you out!
On Thu, May 10, 2012 at 3:52 PM, Philip Brown p...@bolthole.com wrote:
On Wednesday, May 9, 2012 11:55:01 AM UTC-7, Gary Larizza wrote:
Philip,
You can use Augeas to do this,
On Thursday, May 10, 2012 3:59:36 PM UTC-7, Gary Larizza wrote:
You'll want to add ensure = present to the file_line resource and then
run it again. That should help you out!
yup, I noticed :)
isnt this technically a bug in puppetlabs-stdlib:file_line, though?
shouldnt it be updated so
On Thu, May 10, 2012 at 4:30 PM, Philip Brown p...@bolthole.com wrote:
On Thursday, May 10, 2012 3:59:36 PM UTC-7, Gary Larizza wrote:
You'll want to add ensure = present to the file_line resource and then
run it again. That should help you out!
yup, I noticed :)
isnt this
On Thursday, May 10, 2012 4:37:14 PM UTC-7, Gary Larizza wrote:
On Thu, May 10, 2012 at 4:30 PM, Philip Brown wrote:
Erm... except that theres no directions in the module on where to file
bug reports, nor does there seem to be any mechanism on
forge.puppetlabs.com itself either.
On Monday, May 7, 2012 11:39:37 AM UTC-7, jcbollinger wrote:
You may be able to base your provider on the ParsedFile general-
purpose base provider, though I did not do that with mine.
*Sounds* promising. But... no documentation on using this either, that I
can find?
K.I.S.S.
At this
Philip,
You can use Augeas to do this, or look at a custom file_line type in the
Puppetlabs-stdlib module --
https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb
On Wed, May 9, 2012 at 11:46 AM, Philip Brown p...@bolthole.com wrote:
On Monday, May 7, 2012
On Wednesday, May 9, 2012 11:55:01 AM UTC-7, Gary Larizza wrote:
Philip,
You can use Augeas to do this,
Install a whole new C library/util/ thingie, just to do something trivial?
no thanks...
or look at a custom file_line type in the Puppetlabs-stdlib module --
On May 4, 8:55 am, Philip Brown p...@bolthole.com wrote:
On Fri, May 4, 2012 at 1:18 AM, Luke Bigum luke.bi...@lmax.com wrote:
Hi Philip,
What's wrong with letting Puppet decide on the provider automatically?
user { luke: ensure = present, home = '/home/luke', password =
On Monday, May 7, 2012 7:01:11 AM UTC-7, jcbollinger wrote:
user { 'alice':
ensure = present,
provider = 'nisuser'
}
ensures the /etc/passwd contains the line
+alice::
Those properties that make sense to override locally are also
supported. Unfortunately, I'm not
Hmm.. after reading the solaris manpage, it seems that the useradd
command, allegedly only adds to local /etc/files stuff.
So that part could theoretically be fine for me... it's the does user
already exist? detection that is non-desired.
But... I am not tracking how Puppet detects that.
On May 7, 11:16 am, Philip Brown p...@bolthole.com wrote:
Hmm.. after reading the solaris manpage, it seems that the useradd
command, allegedly only adds to local /etc/files stuff.
So that part could theoretically be fine for me... it's the does user
already exist? detection that is
On May 7, 11:04 am, Philip Brown p...@bolthole.com wrote:
On Monday, May 7, 2012 7:01:11 AM UTC-7, jcbollinger wrote:
user { 'alice':
ensure = present,
provider = 'nisuser'
}
ensures the /etc/passwd contains the line
+alice::
Those properties that make sense to
13 matches
Mail list logo