#network(_opts) ⇒ Object

#passwd(opts) ⇒ Object

Parameters:

opts(Hash)
—

options

Options Hash (opts):

user(String)

password(String)

73
74
75
76
77
78
79
80
81
82
83
84

# File 'lib/osctld/dist_config/base.rb', line 73defpasswd(opts)ret=ct_syscmd(ct,'chpasswd',stdin:"#{opts[:user]}:#{opts[:password]}\n",run:true,valid_rcs::all)returntrueifret[:exitstatus]==0log(:warn,ct,"Unable to set password: #{ret[:output]}")end