对这里的木偶很陌生。
认为:
define add_user ($shell) {
$username = $title
user { $username:
shell = $shell,
}
group { $username:
require => User[$username]
}
}
和:
class zsh {
package { 'zsh': ensure => 'installed' }
}
class bash {
package { 'bash': ensure => 'installed' }
}
最后:
node default {
add_user { 'foo':
shell => '/bin/zsh'
}
}
如何设置从用户到 shell 的要求?