Skip to content

Commit

Permalink
ansibleController.devopsAsCodePassword
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Moussaud committed May 11, 2020
1 parent bcad35e commit c735ba8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/resources/devops-as-code/apply.sh.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
-->
cat ${yaml_file}


echo "\n----"
echo "/usr/local/bin/xl --xl-deploy-password ${ansibleController.devopsAsCodePassword} --xl-deploy-username ${ansibleController.devopsAsCodeUsername} --xl-deploy-url ${ansibleController.devopsAsCodeUrl} apply -f ${yaml_file}"
echo "\n"
echo "---"

/usr/local/bin/xl --xl-deploy-password ${ansibleController.devopsAsCodePassword} --xl-deploy-username ${ansibleController.devopsAsCodeUsername} --xl-deploy-url ${ansibleController.devopsAsCodeUrl} apply -f ${yaml_file}
2 changes: 1 addition & 1 deletion src/main/resources/synthetic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<property name="devopsAsCodeDirectory" required="false" default="/tmp/devops-as-code" category="devops-as-code"/>
<property name="devopsAsCodeUrl" required="false" default="http://localhost:4537" category="devops-as-code"/>
<property name="devopsAsCodeUsername" required="false" default="admin" category="devops-as-code"/>
<property name="devopsAsCodePassword" required="false" default="admin" category="devops-as-code" password="true"/>
<property name="devopsAsCodePassword" required="false" default="admin" category="devops-as-code" password="false"/>
<property name="debug" category="Advanced" kind="boolean" default="false"/>
</type>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/xl-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<yaml_file expression="true">
"{0}/{1}/tmp/digital.ai_xldeploy.yaml".format(deployed.container.host.ansibleController.devopsAsCodeDirectory, deployed.container.host.name)
</yaml_file>
<ansibleController expression="true">deployed.container.host.ansibleController</ansibleController>
<ansibleController expression="true">repositoryService.read(deployed.container.host.ansibleController.host.id)</ansibleController>
</freemarker-context>
</os-script>

Expand Down

0 comments on commit c735ba8

Please sign in to comment.