7-puppet任务计划管理

1、添加任务计划vim

vim/etc/puppet/mainfests/site.ppide

cron { 'ntp update':spa

        ensure => present,xml

        command => "ntpupdate ntp.time.com",it

        user    => "root",class

        minute  => "0",date

        hour    => "0",command

        monthday => "*",im

        month    => '*',margin

        weekday  => '*',

}

2、删除任务计划

vim/etc/puppet/mainfests/site.pp

cron { 'ntp update':

        ensure => absent,

        command => "ntpupdate ntp.time.com",

        user    => "root",

        minute  => "0",

        hour    => "0",

        monthday => "*",

        month    => '*',

        weekday  => '*',

}

相关文章
相关标签/搜索