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  => '*',

}

相關文章
相關標籤/搜索