solar/examples/cli/example.sh
Łukasz Oleś dcfdecf7ea Fix cli example
- create nodes from VR
- remove old command
2015-10-01 18:44:17 +02:00

19 lines
420 B
Bash
Executable File

#!/bin/bash
set -eux
function deploy {
# this two commands will clean db
solar resource clear_all
solar resource create nodes templates/nodes.yaml '{"count": 1}'
solar resource create mariadb1 /vagrant/resources/mariadb_service image=mariadb port=3306
solar connect node1 mariadb1
solar changes stage
solar changes process
solar orch run-once last
solar orch report last
}
deploy