Vipul Ramani
2008-Jun-03 20:10 UTC
[Puppet Users] Editing existing Cronjob for specific user
Hi all,
I am new in puppet. I am trying to edit existing crontjob under user
vipulramani
---------------------------puppetmasterd --
site.pp------------------------
class cronuser {
cron { vipul:
command => " echo TESTfile-generatedby cront >>
/test-File",
user => vipulramani,
hour => 12,
minute => 45
}
}
# tell puppet on which client to run the class
node solaris2 {
include test_class
include cronuser
}
--------------------------------------------------------------------------------------------
on solaris2 logged as vipulramani
bash-3.00$ crontab -l
02 23 * * * echo "TESTfile-generatedby cront " >> /test-File
''
I want to change it 45 12 * * * insread of 02 23 .
I pulled configuration from puppet master ...
bash-3.00# puppetd -v -o
info: Config is up to date
notice: Starting configuration run
notice: //solaris2/cronuser/Cron[vipulramani]/command: command changed
''echo TESTfile-generatedby cront >> /test-File'' to
'' echo TESTfile-
generatedby cront >> /test-File''
notice: Finished configuration run in 0.68 seconds
and, puppet master does not any error in puppet log....
Puppet does not change/updated !!!!! ( but i know it will run )
bash-3.00$ crontab -l
02 23 * * * echo "TESTfile-generatedby cront " >> /test-File
bash-3.00$
I did not have much idea bout puppet internal.... does it related to
this ???
i think i am missing something if any one have idea ...
Thanks in adv
Vipul Ramani
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Vipul Ramani
2008-Jun-03 20:11 UTC
[Puppet Users] Editing existing Cronjob for specific user
Hi all,
I am new in puppet. I am trying to edit existing crontjob under user
vipulramani
---------------------------puppetmasterd --
site.pp------------------------
class cronuser {
cron { vipul:
command => " echo TESTfile-generatedby cront >>
/test-File",
user => vipulramani,
hour => 12,
minute => 45
}
}
# tell puppet on which client to run the class
node solaris2 {
include test_class
include cronuser
}
--------------------------------------------------------------------------------------------
on solaris2 logged as vipulramani
bash-3.00$ crontab -l
02 23 * * * echo "TESTfile-generatedby cront " >> /test-File
''
I want to change it 45 12 * * * insread of 02 23 .
I pulled configuration from puppet master ...
bash-3.00# puppetd -v -o
info: Config is up to date
notice: Starting configuration run
notice: //solaris2/cronuser/Cron[vipulramani]/command: command changed
''echo TESTfile-generatedby cront >> /test-File'' to
'' echo TESTfile-
generatedby cront >> /test-File''
notice: Finished configuration run in 0.68 seconds
and, puppet master does not any error in puppet log....
Puppet does not change/updated !!!!! ( but i know it will run )
bash-3.00$ crontab -l
02 23 * * * echo "TESTfile-generatedby cront " >> /test-File
bash-3.00$
I do not have much idea about puppet internal.... does it related to
this ???
i think i am missing something if any one have idea ...
Thanks in adv
Vipul Ramani
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Vipul Ramani
2008-Jun-03 22:22 UTC
[Puppet Users] Re: Editing existing Cronjob for specific user
This is line is added in crontab of root.. it is working but but file which is generated by it permission should be " vipulramani:other ." ..But here iti s root:other !!! bash-3.00# crontab -l ----removed------------------------ # Puppet Name: vipulramani 45 12 * * * echo TESTfile-generatedby cront >> /test-File ---------------------------------------------------- On Jun 3, 1:11 pm, Vipul Ramani <vipulram...@gmail.com> wrote:> Hi all, > > I am new in puppet. I am trying to edit existing crontjob under user > vipulramani > > ---------------------------puppetmasterd -- > site.pp------------------------ > > class cronuser { > cron { vipul: > command => " echo TESTfile-generatedby cront >> /test-File", > user => vipulramani, > hour => 12, > minute => 45 > > } > } > > # tell puppet on which client to run the class > node solaris2 { > include test_class > include cronuser > > } > > -------------------------------------------------------------------------------------------- > on solaris2 logged as vipulramani > > bash-3.00$ crontab -l > 02 23 * * * echo "TESTfile-generatedby cront " >> /test-File > '' > I want to change it 45 12 * * * insread of 02 23 . > > I pulled configuration from puppet master ... > > bash-3.00# puppetd -v -o > info: Config is up to date > notice: Starting configuration run > notice: //solaris2/cronuser/Cron[vipulramani]/command: command changed > ''echo TESTfile-generatedby cront >> /test-File'' to '' echo TESTfile- > generatedby cront >> /test-File'' > notice: Finished configuration run in 0.68 seconds > > and, puppet master does not any error in puppet log.... > > Puppet does not change/updated !!!!! ( but i know it will run ) > > bash-3.00$ crontab -l > 02 23 * * * echo "TESTfile-generatedby cront " >> /test-File > bash-3.00$ > > I do not have much idea about puppet internal.... does it related to > this ??? > > i think i am missing something if any one have idea ... > > Thanks in adv > Vipul Ramani--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---