Skip to content

Commit

Permalink
Merge pull request #38 from emahags/workstation
Browse files Browse the repository at this point in the history
Add ability to join in workstation mode
  • Loading branch information
Johan Wennerberg committed Oct 13, 2014
2 parents d64faea + 5575f39 commit 8872e95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,16 @@
$s_opts = "-s ${sitenameoverride}"
}

if $vas_conf_vasd_workstation_mode_real == true {
$workstation_flag = "-w"
} else {
$workstation_flag = ""
}

$once_file = '/etc/opt/quest/vas/puppet_joined'

exec { 'vasinst':
command => "vastool -u ${username} -k ${keytab_path} -d3 join -f -c ${computers_ou} -p ${users_ou} -n ${vas_fqdn} ${s_opts} ${realm} > ${vasjoin_logfile} 2>&1 && touch ${once_file}",
command => "vastool -u ${username} -k ${keytab_path} -d3 join -f ${workstation_flag} -c ${computers_ou} -p ${users_ou} -n ${vas_fqdn} ${s_opts} ${realm} > ${vasjoin_logfile} 2>&1 && touch ${once_file}",
path => '/bin:/usr/bin:/opt/quest/bin',
timeout => 1800,
creates => $once_file,
Expand Down

0 comments on commit 8872e95

Please sign in to comment.