Skip to content

Commit

Permalink
Set up casc conditionally (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhan9san authored Oct 25, 2024
1 parent 8d54a6a commit e4c2895
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jenkins_plugin_file: plugins.txt
jenkins_plugin_file_path: "{{ jenkins_tool_dir }}/plugins.txt"

# For JCasc
jenkins_jcasc_template: "jenkins.yml.j2"
jenkins_jcasc_template: ""

jenkins_ldap_managed_dn: ""
jenkins_ldap_manager_password_secret: ""
Expand Down
2 changes: 1 addition & 1 deletion files/plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildtriggerbadge:251.vdf6ef853f3f5
cloudbees-bitbucket-branch-source:888.v8e6d479a_1730
command-launcher:115.vd8b_301cc15d0
configuration-as-code:1836.vccda_4a_122a_a_e
credentials:1371.vfee6b_095f0a_3
credentials:1378.v81ef4269d764
credentials-binding:681.vf91669a_32e45
dashboard-view:2.517.v776a_b_811a_b_4e
docker-plugin:1.6.2
Expand Down
3 changes: 2 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
hosts: all
vars:
jdk_version: 21.0.2
java_home: "/opt/jdk-21.0.2"
java_home: /opt/jdk-21.0.2
jenkins_jcasc_template: jenkins.yaml.j2
jenkins_systemd_unit_envs:
java_home: "{{ java_home }}"
tasks:
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- name: Set up JCasc
ansible.builtin.include_tasks:
file: "setup-jcasc.yml"
when: jenkins_jcasc_template

- name: Set up Seed job
ansible.builtin.include_tasks:
Expand Down
File renamed without changes.

0 comments on commit e4c2895

Please sign in to comment.