Browse Source

Create default directories

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/13/277513/1
Paul Belanger 4 years ago
parent
commit
1176ccb5e4
3 changed files with 15 additions and 2 deletions
  1. +5
    -1
      defaults/main.yaml
  2. +9
    -0
      tasks/config.yaml
  3. +1
    -1
      tasks/install/redhat.yaml

+ 5
- 1
defaults/main.yaml View File

@@ -12,6 +12,10 @@
# License for the specific language governing permissions and limitations
# under the License.
---
jenkins_user_name: jenkins
jenkins_user_group: "{{ jenkins_user_name }}"
jenkins_user_home: "/var/lib/{{ jenkins_user_name }}"

jenkins_config_ajp_listen_address: 127.0.0.1
jenkins_config_ajp_port: -1
jenkins_config_args: ''
@@ -19,7 +23,7 @@ jenkins_config_debug_level: 5
jenkins_config_enable_access_log: no
jenkins_config_handler_idle: 20
jenkins_config_handler_max: 100
jenkins_config_home: /var/lib/jenkins
jenkins_config_home: "{{ jenkins_user_home }}"
jenkins_config_https_keystore: ''
jenkins_config_https_keystore_password: ''
jenkins_config_https_listen_address: 127.0.0.1


+ 9
- 0
tasks/config.yaml View File

@@ -12,6 +12,15 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- name: Create required directories.
file:
group: "{{ jenkins_user_group }}"
owner: "{{ jenkins_user_name }}"
path: "{{ item }}"
state: directory
with_items:
- "{{ jenkins_user_home }}/plugins"

- name: Template clouds yaml file.
template:
dest: "{{ jenkins_template_config_dest }}"


+ 1
- 1
tasks/install/redhat.yaml View File

@@ -13,7 +13,7 @@
# under the License.
---
- name: Ensure build dependencies are installed.
yum:
yum:
pkg: "{{ item }}"
state: installed
with_items: jenkins_build_depends


Loading…
Cancel
Save