Guest User

Untitled

a guest
Oct 16th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. deploy:
  2. connections:
  3. MySSH:
  4. type: "ssh"
  5. options:
  6. host: "localhost"
  7. username: "foo"
  8. password: "bar"
  9.  
  10. MyFTP:
  11. type: "ftp"
  12. options:
  13. host: "host.fr"
  14. username: "foo"
  15. password: "bar"
  16. MySQL1:
  17. type: "mysql"
  18. options:
  19. host: "host.fr"
  20. username: "foo"
  21. password: "bar"
  22. database: "db1"
  23.  
  24. MySQL2:
  25. type: "mysql"
  26. options:
  27. host: "host.2.fr"
  28. username: "foo"
  29. password: "bar"
  30. database: "db2"
  31.  
  32. steps:
  33. -
  34. type: "echo"
  35. options:
  36. message: "A test message <comment>with</comment> <info>formatted</info> <error>output</error>"
  37.  
  38. -
  39. type: "rsync"
  40. options:
  41. key_file: "/home/jubianchi/.ssh/id_rsa_rsync"
  42. source_dir: "/tmp/minitwitter"
  43. destination_dir: "/tmp/minitwitter2"
  44. destination_connection: "MySSH"
  45.  
  46. -
  47. type: "echo"
  48. options:
  49. message:
  50. - "<comment>A multiline text</comment>"
  51. - "<info>Hey look, there's a second line with a different style</info>"
  52.  
  53. -
  54. type: "echo"
  55. options:
  56. message: |
  57. Another echo step with a long string
  58. With multiple lines
  59. <info>And</info> <comment>some</comment> <error>formatting</error>
  60.  
  61. -
  62. type: "ftp"
  63. options:
  64. connection: "MyFTP"
  65. local_dir: "src"
  66. remote_dir: "/test"
  67.  
  68. -
  69. type: "ssh"
  70. options:
  71. connection: "MySSH"
  72. commands:
  73. - uname -a
  74. - date
  75.  
  76. -
  77. type: "ssh"
  78. options:
  79. connection: "MySSH"
  80. commands:
  81. - echo "Listing <info>$(pwd)</info> <error>(Hey! I can format ssh command output)</error>"
  82. - ls -lh --color
  83.  
  84. -
  85. type: "git"
  86. options:
  87. connection: "MySSH"
  88. repository: "git://github.com/jubianchi/minitwitter.git"
  89. remote_dir: "/tmp/minitwitter"
  90. clean_scm: true
  91. remove_existing: true
  92.  
  93. -
  94. type: "mysql"
  95. options:
  96. source: "MySQL1"
  97. destination: "MySQL2"
  98. create_database: true
  99. drop_database: true
Add Comment
Please, Sign In to add comment