# /home/administrator/code/environments/production/manifests/site.pp # 웹 서버 charset 설정하기 node 'vm01.linuxmastery.kr' { ... package { 'apache2': ensure => installed, } service { 'apache2': ensure => running, } file { 'index.html': path => '/var/www/html/index.html', content => "안녕하세요!\n", require => Package['apache2'], } file { 'charset.conf': path => '/etc/apache2/conf-available/charset.conf', content => "AddDefaultCharset UTF-8\n", ➊ require => Package['apache2'], ➋ notify => Service['apache2'], ➌ } Package['apache2'] -> Service['apache2'] }