Skip to content

Commit c910331

Browse files
authored
Merge pull request #23 from Oefenweb/consistency-changes
Consistency changes
2 parents 2c5845f + aeef347 commit c910331

File tree

16 files changed

+55
-41
lines changed

16 files changed

+55
-41
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Check out the codebase
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Python 3
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.x'
23+
python-version: '3 - 3.13'
2424

2525
- name: Install test dependencies
2626
run: |
@@ -44,25 +44,27 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- distro: ubuntu1604
48-
ansible-version: '>=2.10, <2.11'
49-
- distro: ubuntu1604
5047
- distro: ubuntu1804
48+
ansible-version: '>=9, <10'
5149
- distro: ubuntu2004
50+
ansible-version: '>=12, <13'
51+
- distro: ubuntu2204
52+
- distro: ubuntu2404
5253

5354
steps:
5455
- name: Check out the codebase
55-
uses: actions/checkout@v3
56+
uses: actions/checkout@v5
5657
with:
5758
path: "${{ github.repository }}"
5859

5960
- name: Set up Python 3
60-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@v6
6162
with:
62-
python-version: '3.x'
63+
python-version: '3 - 3.13'
6364

6465
- name: Install test dependencies
65-
run: pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
66+
run: |
67+
pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
6668
6769
- name: Run Molecule tests
6870
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out the codebase
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v5
1616

1717
- name: Publish to Galaxy
1818
uses: robertdebock/galaxy-action@1.2.0

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Set up (the latest version of) jenkins in Ubuntu systems.
1717

1818
* `jenkins_install` [default: `[]`]: (Additional) Packages to install
1919

20-
* `jenkins_assume_java_provided` [default: `false`]: Whether or not to assume that java (`jre` and `jdk`) is already installed
20+
* `jenkins_assume_java_provided` [default: `false`]: Whether to assume that java (`jre` and `jdk`) is already installed
2121

22+
* `jenkins_java` [optional]: Java binary to use (e.g. `/usr/lib/jvm/java-21-openjdk-amd64/bin/java`)
2223
* `jenkins_java_args` [default: `['-Djava.awt.headless=true']`]: Java arguments to pass
2324
* `jenkins_user` [default: `jenkins`]: User to be invoked as
2425
* `jenkins_group` [default: `jenkins`]: Group to be invoked as
@@ -32,12 +33,12 @@ Set up (the latest version of) jenkins in Ubuntu systems.
3233

3334
* `jenkins_plugins` [default: `[]`]: Plugins to install (**Does not work (for now)**)
3435

35-
* `jenkins_tasks_mailer_manage` [default: `true`]: Whether or not to manage `hudson.tasks.Mailer.xml` (for sending notifications)
36+
* `jenkins_tasks_mailer_manage` [default: `true`]: Whether to manage `hudson.tasks.Mailer.xml` (for sending notifications)
3637
* `jenkins_tasks_mailer_default_suffix` [default: `'@localhost.localdomain'`]: Default user e-mail suffix
3738
* `jenkins_tasks_mailer_smtp_host` [default: `localhost`]: SMTP server
3839
* `jenkins_tasks_mailer_smtp_port` [default: `25`]: SMTP port
39-
* `jenkins_tasks_mailer_use_ssl` [default: `false`]: Whether or not to use ssl
40-
* `jenkins_tasks_mailer_use_smtp_auth` [default: `false`]: Whether or not to use SMTP Authentication
40+
* `jenkins_tasks_mailer_use_ssl` [default: `false`]: Whether to use ssl
41+
* `jenkins_tasks_mailer_use_smtp_auth` [default: `false`]: Whether to use SMTP Authentication
4142
* `jenkins_tasks_mailer_smtp_auth_username` [default: `''`]: SMTP Authentication username
4243
* `jenkins_tasks_mailer_smtp_auth_password` [default: `''`]: SMTP Authentication password
4344
* `jenkins_tasks_mailer_charset` [default: `UTF-8`]: Charset
@@ -49,6 +50,7 @@ None
4950
## Recommended
5051

5152
* `ansible-oracle-java` ([see](https://github.com/Oefenweb/ansible-oracle-java), when `jenkins_assume_java_provided` is `true`)
53+
* `ansible-openjdk` ([see](https://github.com/Oefenweb/ansible-openjdk), when `jenkins_assume_java_provided` is `true`)
5254

5355
#### Example
5456

Vagrantfile

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
role = File.basename(File.expand_path(File.dirname(__FILE__)))
55

66
boxes = [
7-
{
8-
:name => "ubuntu-1604",
9-
:box => "bento/ubuntu-16.04",
10-
:ip => '10.0.0.12',
11-
:cpu => "50",
12-
:ram => "256"
13-
},
147
{
158
:name => "ubuntu-1804",
169
:box => "bento/ubuntu-18.04",
@@ -25,6 +18,20 @@ boxes = [
2518
:cpu => "50",
2619
:ram => "512"
2720
},
21+
{
22+
:name => "ubuntu-2204",
23+
:box => "bento/ubuntu-22.04",
24+
:ip => '10.0.0.15',
25+
:cpu => "50",
26+
:ram => "512"
27+
},
28+
{
29+
:name => "ubuntu-2404",
30+
:box => "bento/ubuntu-24.04",
31+
:ip => '10.0.0.16',
32+
:cpu => "50",
33+
:ram => "512"
34+
},
2835
]
2936

3037
Vagrant.configure("2") do |config|

meta/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ galaxy_info:
1111
platforms:
1212
- name: Ubuntu
1313
versions:
14-
- xenial
1514
- bionic
1615
- focal
16+
- jammy
17+
- noble
1718
galaxy_tags:
1819
- system
1920
- development

molecule/default/collections.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
---
2-
collections:
3-
- name: community.docker
4-
version: '>=1.2.0,<2'
5-
- name: community.general
6-
version: '>=2,<3'
2+
collections: []

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ driver:
55
name: docker
66
platforms:
77
- name: instance
8-
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest"
8+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest"
99
command: ${MOLECULE_DOCKER_COMMAND:-""}
1010
volumes:
1111
- /sys/fs/cgroup:/sys/fs/cgroup:rw

tasks/cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
state: directory
2121
owner: root
2222
group: root
23-
mode: 0755
23+
mode: '0755'
2424
tags:
2525
- jenkins-cli-directory
2626

@@ -30,7 +30,7 @@
3030
dest: "{{ jenkins_cli_path }}"
3131
owner: root
3232
group: root
33-
mode: 0644
33+
mode: '0644'
3434
register: _jenkins_cli_download
3535
until: "'OK' in _jenkins_cli_download.msg or 'file already exists' in _jenkins_cli_download.msg"
3636
retries: 10

tasks/configure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
dest: /etc/default/jenkins
77
owner: root
88
group: root
9-
mode: 0644
9+
mode: '0644'
1010
register: _jenkins_update_etc_default
1111
tags:
1212
- jenkins-configure-configuration
@@ -17,7 +17,7 @@
1717
dest: "{{ jenkins_home }}/hudson.tasks.Mailer.xml"
1818
owner: "{{ jenkins_user }}"
1919
group: "{{ jenkins_group }}"
20-
mode: 0644
20+
mode: '0644'
2121
notify: restart jenkins
2222
when: jenkins_tasks_mailer_manage | bool
2323
tags:

tasks/plugins.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
state: directory
77
owner: "{{ jenkins_user }}"
88
group: "{{ jenkins_group }}"
9-
mode: 0755
9+
mode: '0755'
1010
tags:
1111
- jenkins-plugins-directory
1212

0 commit comments

Comments
 (0)