diff --git a/murano-apps/Jenkins/package/Classes/Jenkins.yaml b/murano-apps/Jenkins/package/Classes/Jenkins.yaml
index 91d72b5..3beec73 100644
--- a/murano-apps/Jenkins/package/Classes/Jenkins.yaml
+++ b/murano-apps/Jenkins/package/Classes/Jenkins.yaml
@@ -132,7 +132,11 @@ Methods:
- $this.instance.putHieraData($data)
- $resources: new(sys:Resources)
- - $._environment.reporter.report($this, 'Connecting Jenkins to OpenLDAP server')
+ - $._environment.reporter.report($this, 'Installing jenkins LDAP plugin...')
+ - $template: $resources.yaml('InstallPlugins.template').bind({plugins => ldap})
+ - $.instance.agent.call($template, $resources)
+ - $._environment.reporter.report($this, 'LDAP plugin is installed.')
+ - $._environment.reporter.report($this, 'Connecting Jenkins to OpenLDAP server...')
- $template: $resources.yaml('ConnectLDAP.template')
- $.instance.agent.call($template, $resources)
- $._environment.reporter.report($this, 'Jenkins is connected to OpenLDAP server!')
diff --git a/murano-apps/Jenkins/package/Resources/scripts/configure_ldap/templates/config.erb b/murano-apps/Jenkins/package/Resources/scripts/configure_ldap/templates/config.erb
index 209593f..44791f0 100644
--- a/murano-apps/Jenkins/package/Resources/scripts/configure_ldap/templates/config.erb
+++ b/murano-apps/Jenkins/package/Resources/scripts/configure_ldap/templates/config.erb
@@ -5,20 +5,30 @@
2
NORMAL
true
-
+
+ false
+
+
ldap://<%= openldap_ip %>:389
dc=<%= domain.split(".")[0] %>,dc=<%= domain.split(".")[1] %>
false
uid={0}
+
+
+
cn=<%= admin_name %>,dc=<%= domain.split(".")[0] %>,dc=<%= domain.split(".")[1] %>
<% require 'base64' %>
- <%= Base64.encode64(admin_password) %>
+ <%= Base64.encode64(admin_password) -%>
false
+ displayname
+ mail
+
+
false
-
+
${JENKINS_HOME}/workspace/${ITEM_FULLNAME}
${ITEM_ROOTDIR}/builds
@@ -33,12 +43,14 @@
All
false
false
-
All
- 0
+ -1
+
+ false
+
-
+
\ No newline at end of file
diff --git a/murano-apps/Nodepool/package/Resources/get_api_token.sh b/murano-apps/Nodepool/package/Resources/get_api_token.sh
index 21f2949..39dd19f 100644
--- a/murano-apps/Nodepool/package/Resources/get_api_token.sh
+++ b/murano-apps/Nodepool/package/Resources/get_api_token.sh
@@ -3,14 +3,14 @@
username="%USERNAME%"
password="%PASSWORD%"
jenkins_host="%JENKINS_HOST%"
-cmd="curl --user '$username:$password' http://${jenkins_host}:8080/me/configure | grep -o '\"[0-9a-f]\{32\}\"' | cut -d '\"' -f 2"
+cmd="curl --user '$username:$password' http://${jenkins_host}:8080/me/configure | grep apiToken | grep -o '\"[0-9a-f]\{32\}\"' | cut -d '\"' -f 2"
# Jenkins might not be ready at this point.
# Retry logic is used here.
token=$(eval $cmd)
tries=10
-while [ -z $token ]; do
+while [ -z "$token" ]; do
sleep 20
token=$(eval $cmd)