2013-01-10 63 views
1

我正在玩木偶並注意到這種行爲。爲什麼傀儡資源在指定提供者時行爲不一樣

# puppet resource file /etc/passwd 
file { '/etc/passwd': 
    ensure => 'file', 
    content => '{md5}7a63b133e1a086d9f35c2014b3b09218', 
    ctime => 'Thu Jan 10 17:16:11 -0700 2013', 
    group => '0', 
    mode  => '644', 
    mtime => 'Thu Jan 10 17:16:11 -0700 2013', 
    owner => '0', 
    selrange => 's0', 
    selrole => 'object_r', 
    seltype => 'etc_t', 
    seluser => 'system_u', 
    type  => 'file', 
} 

VS

# puppet resource file /etc/passwd provider=posix 
file { '/etc/passwd': 
    ensure => 'file', 
    selrange => 's0', 
    selrole => 'object_r', 
    seltype => 'etc_t', 
    seluser => 'system_u', 
} 

這是Linux系統中的文件提供者應該是POSIX上。爲什麼顯式指定提供者時輸出不同?

編輯:爲命令添加了特定輸出。

回答