diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e94ea8..1d2cd54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,10 +44,12 @@ jobs: fail-fast: false matrix: include: - - distro: debian9 - distro: debian10 + - distro: debian11 + - distro: debian12 - distro: ubuntu1804 - distro: ubuntu2004 + - distro: ubuntu2204 steps: - name: Check out the codebase @@ -61,8 +63,8 @@ jobs: python-version: '3.x' - name: Install test dependencies - run: pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker - + run: | + pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker - name: Run Molecule tests run: | molecule test diff --git a/Vagrantfile b/Vagrantfile index cffea0e..5daa6bf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -16,14 +16,14 @@ boxes = [ :box => "bento/ubuntu-20.04", :ip => '10.0.0.14', :cpu => "50", - :ram => "384" + :ram => "512" }, { - :name => "debian-9", - :box => "bento/debian-9", - :ip => '10.0.0.17', + :name => "ubuntu-2204", + :box => "bento/ubuntu-22.04", + :ip => '10.0.0.15', :cpu => "50", - :ram => "256" + :ram => "512" }, { :name => "debian-10", @@ -32,6 +32,20 @@ boxes = [ :cpu => "50", :ram => "256" }, + { + :name => "debian-11", + :box => "bento/debian-11", + :ip => '10.0.0.19', + :cpu => "50", + :ram => "256" + }, + { + :name => "debian-12", + :box => "bento/debian-12", + :ip => '10.0.0.20', + :cpu => "50", + :ram => "256" + }, ] Vagrant.configure("2") do |config| diff --git a/defaults/main.yml b/defaults/main.yml index d4ac230..dd58869 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,5 @@ # defaults file --- rstudio_version: '2023.03.1-446' +rstudio_download_url: "{{ rstudio_preset_download_url }}" rstudio_install: [] diff --git a/meta/main.yml b/meta/main.yml index a2f2646..6878d75 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -13,10 +13,12 @@ galaxy_info: versions: - bionic - focal + - jammy - name: Debian versions: - - stretch - buster + - bullseye + - bookworm galaxy_tags: - development - system diff --git a/molecule/default/collections.yml b/molecule/default/collections.yml index c3d7e2a..1062b36 100644 --- a/molecule/default/collections.yml +++ b/molecule/default/collections.yml @@ -1,6 +1,2 @@ --- -collections: - - name: community.docker - version: '>=1.2.0,<2' - - name: community.general - version: '>=2,<3' +collections: [] diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 8841165..908aaf6 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -5,7 +5,7 @@ driver: name: docker platforms: - name: instance - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw diff --git a/vars/_bookworm.yml b/vars/_bookworm.yml new file mode 100644 index 0000000..82f2c03 --- /dev/null +++ b/vars/_bookworm.yml @@ -0,0 +1,3 @@ +# vars file +--- +rstudio_preset_download_url: "https://download1.rstudio.org/electron/jammy/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" diff --git a/vars/_bullseye.yml b/vars/_bullseye.yml new file mode 100644 index 0000000..a6f7b89 --- /dev/null +++ b/vars/_bullseye.yml @@ -0,0 +1,3 @@ +# vars file +--- +rstudio_preset_download_url: "https://download1.rstudio.org/electron/bionic/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" diff --git a/vars/_buster.yml b/vars/_buster.yml new file mode 100644 index 0000000..a6f7b89 --- /dev/null +++ b/vars/_buster.yml @@ -0,0 +1,3 @@ +# vars file +--- +rstudio_preset_download_url: "https://download1.rstudio.org/electron/bionic/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" diff --git a/vars/_default.yml b/vars/_default.yml index 99d73f1..feb803b 100644 --- a/vars/_default.yml +++ b/vars/_default.yml @@ -1,3 +1,3 @@ # vars file --- -rstudio_download_url: "https://download1.rstudio.org/electron/bionic/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" +rstudio_preset_download_url: "https://download1.rstudio.org/electron/{{ ansible_distribution_release }}/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" diff --git a/vars/_focal.yml b/vars/_focal.yml new file mode 100644 index 0000000..a6f7b89 --- /dev/null +++ b/vars/_focal.yml @@ -0,0 +1,3 @@ +# vars file +--- +rstudio_preset_download_url: "https://download1.rstudio.org/electron/bionic/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" diff --git a/vars/_stretch.yml b/vars/_stretch.yml index a99a53e..371f126 100644 --- a/vars/_stretch.yml +++ b/vars/_stretch.yml @@ -1,3 +1,3 @@ # vars file --- -rstudio_download_url: "https://download1.rstudio.org/electron/debian9/{{ ansible_machine }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb" +rstudio_preset_download_url: "https://download1.rstudio.org/electron/debian9/{{ ansible_machine }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb"