已经试过在ubuntu上安装 puppet libshadow-ruby1.8
class users {
package { "libshadow-ruby1.8":
ensure => latest,
require => Exec['apt-get update']
}
user { "ubuntu":
ensure => present,
uid => '1001',
gid => 'admin',
shell => '/bin/bash',
password => sha1('ubuntu'),
managehome => true,
require => Package['libshadow-ruby1.8']
}
}
include users
这么写用户名是创建了, 但是密码还是没有
ps: 其实我是在用vagrant, vagrant是默认用户名想换成ubuntu
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师