ControlTier commands
September 4, 2010
Add Project to Node ctl-depot -p my-project -a create
Install Project on Node ctl-depot -p my-project -a install
Create Site Get site XML template from http://controltier.org/wiki/Mock_Site_Example (look for “The Site definition”) ctl -p my-project -m ProjectBuilder -c load-objects -- -filename site.xml
Create Service Get service XML template from http://controltier.org/wiki/Category:Service ctl -p my-project -m ProjectBuilder -c load-objects -- -filename service.xml
Create Package Get Package XML template from http://controltier.org/wiki/Package ctl -p my-project -m ProjectBuilder -c load-objects -- -filename package.xml
List Sites ctl -p my-project -m ProjectBuilder -c find-objects -- -type Site
List Services ctl -p my-project -m ProjectBuilder -c find-objects -- -type Service
List Packages ctl -p my-project -m ProjectBuilder -c find-objects -- -type Package
List Project objects ctl -p my-project -m ProjectBuilder -c find-objects --
Add Resource relationship ctl -p my-project -m modelutil -c resource-add -- -name QA -type Site -resourcename my-project-1.0.0 -resourcetype Site
Remove Resource relationship ctl -p my-project -m modelutil -c resource-remove -- -name QA -type Site -resourcename my-project-1.0.0 -resourcetype Site
Deploy Site ctl -p my-project -t Site -o CI -c Deploy
Find Nodes Service will deploy to grep Service.my-project-ws-ci ~/ctl/depots/my-project/etc/deployments.properties
Remove Node from Service ctl -p my-project -m modelutil -c resource-remove -- -name node01.dev -type Node -resourcename my-project-ws-0.0.1 -resourcetype Service
Run command on Node(s) with tag ctl-exec -p my-project -I tags=qa -- whoami