Skip to content

Instantly share code, notes, and snippets.

View antoinell's full-sized avatar

Antoine Levy-Lambert antoinell

View GitHub Profile
@antoinell
antoinell / artifactoryManage.patch
Created January 4, 2019 18:47
patch for artifactoryManage.sh / artifactory.service
--- distribution/standalone/src/main/install/bin/artifactoryManage.sh.orig 2019-01-04 13:44:06.706292535 -0500
+++ distribution/standalone/src/main/install/bin/artifactoryManage.sh 2019-01-04 13:17:50.454061203 -0500
@@ -1,5 +1,4 @@
#!/bin/bash
-#
# Init script for Artifactory service (currently systemd)
#
# chkconfig: 345 86 14
@@ -75,17 +74,24 @@
fi
@antoinell
antoinell / gist:60c101cde44b0967bc82a78f74f9b895
Last active September 4, 2018 19:44
ansible how to evaluate a string in a vars file
- permissions:
{{"{% for item in groups['ingestion'] %}
- 'vhost': {{'/' + item.split('.')[0]}} ,
'configure_priv': '.*' ,
'read_priv': '.*' ,
'write_priv': '.*'
{% endfor %}" | from_yaml}}
The above does not seem to do what is desired.
I am trying to create this data structure in ansible.
permissions:
- vhost: /aws-replica001
configure_priv: .*
read_priv: .*
write_priv: .*
- vhost: /aws-replica004
configure_priv: .*
read_priv: .*