Puppet

準備

$ mkdir -p apache/template
$ cd apache
$ echo "Hello World!" > template/index.html
$ vim apache.pp

Manifest

$packages = [
 'httpd',
 'httpd-devel',
]

package {$packages:
 ensure => installed,
}

service {"httpd":
 enable => true,
 ensure => running,
 hasrestart => true,
 require => Package[$packages],
}

file {'/var/www/html/index.html':
 ensure => present,
 owner => 'apache',
 group => 'apache',
 mode => '0644',
 content => template('index.html'),
 require => Package[$packages],
}

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11