Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deploy:
- connections:
- MySSH:
- type: "ssh"
- options:
- host: "localhost"
- username: "foo"
- password: "bar"
- MyFTP:
- type: "ftp"
- options:
- host: "host.fr"
- username: "foo"
- password: "bar"
- MySQL1:
- type: "mysql"
- options:
- host: "host.fr"
- username: "foo"
- password: "bar"
- database: "db1"
- MySQL2:
- type: "mysql"
- options:
- host: "host.2.fr"
- username: "foo"
- password: "bar"
- database: "db2"
- steps:
- -
- type: "echo"
- options:
- message: "A test message <comment>with</comment> <info>formatted</info> <error>output</error>"
- -
- type: "rsync"
- options:
- key_file: "/home/jubianchi/.ssh/id_rsa_rsync"
- source_dir: "/tmp/minitwitter"
- destination_dir: "/tmp/minitwitter2"
- destination_connection: "MySSH"
- -
- type: "echo"
- options:
- message:
- - "<comment>A multiline text</comment>"
- - "<info>Hey look, there's a second line with a different style</info>"
- -
- type: "echo"
- options:
- message: |
- Another echo step with a long string
- With multiple lines
- <info>And</info> <comment>some</comment> <error>formatting</error>
- -
- type: "ftp"
- options:
- connection: "MyFTP"
- local_dir: "src"
- remote_dir: "/test"
- -
- type: "ssh"
- options:
- connection: "MySSH"
- commands:
- - uname -a
- - date
- -
- type: "ssh"
- options:
- connection: "MySSH"
- commands:
- - echo "Listing <info>$(pwd)</info> <error>(Hey! I can format ssh command output)</error>"
- - ls -lh --color
- -
- type: "git"
- options:
- connection: "MySSH"
- repository: "git://github.com/jubianchi/minitwitter.git"
- remote_dir: "/tmp/minitwitter"
- clean_scm: true
- remove_existing: true
- -
- type: "mysql"
- options:
- source: "MySQL1"
- destination: "MySQL2"
- create_database: true
- drop_database: true
Add Comment
Please, Sign In to add comment