livinginthepast / smf

A Lightweight Resource Provider for SMF in Chef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check for multiple manifests in current resource breaks when older deleted smf exists

sax opened this issue · comments

FYI, this seems to work:

knife ssh "platform:smartos" "sudo svcadm disable -s chef-client" -x ops

knife ssh "platform:smartos" 'for service in $(svccfg list | grep nad); do sudo svcadm disable -s $service; done' -x ops

knife ssh "platform:smartos" 'for instance in $(svccfg list | grep nad); do sudo svccfg delete $instance; done' -x ops

knife ssh "platform:smartos" "sudo rm /var/svc/manifest/application/nad.xml; sudo rm /var/chef/checksums/smf--nad" -x ops

knife ssh "platform:smartos" "svcs -H nad" -x ops

knife ssh "platform:smartos" "sudo chef-client" -x ops