Skip to content

Commit

Permalink
Merge pull request #2 from FraudBuster/feat/remove-osfullname
Browse files Browse the repository at this point in the history
fix: replace usages of grains.osfullname in package.repo.install
  • Loading branch information
sylvainfaivre authored Nov 9, 2023
2 parents 7c64c9f + aa565b8 commit 06da7bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
always_run: true
pass_filenames: false
- repo: https://github.com/warpnet/salt-lint
rev: v0.8.0
rev: v0.9.2
hooks:
- id: salt-lint
name: Check Salt files using salt-lint
Expand Down
6 changes: 3 additions & 3 deletions rabbitmq/package/repo/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ rabbitmq-package-repo-pkg-deps:
- pkgrepo: rabbitmq-package-repo-erlang
- pkgrepo: rabbitmq-package-repo-rabbitmq
{%- set osfullname = grains['osfullname'] %}
{%- set osname = grains['os'] %}
{%- set oscodename = grains['oscodename'] %}
rabbitmq-package-repo-erlang:
pkgrepo.managed:
- name: deb {{ rabbitmq.pkg.repo.erlang.url }}/{{ osfullname|lower }} {{ oscodename }} main
- name: deb {{ rabbitmq.pkg.repo.erlang.url }}/{{ osname|lower }} {{ oscodename }} main
- file: /etc/apt/sources.list.d/erlang.list
- key_url: {{ rabbitmq.pkg.repo.erlang.key_url }}
- require_in:
- pkg: rabbitmq-package-install-pkg-installed
rabbitmq-package-repo-rabbitmq:
pkgrepo.managed:
- name: deb {{ rabbitmq.pkg.repo.rabbitmq.url }}/{{ osfullname|lower }} {{ oscodename }} main
- name: deb {{ rabbitmq.pkg.repo.rabbitmq.url }}/{{ osname|lower }} {{ oscodename }} main
- file: /etc/apt/sources.list.d/rabbitmq.list
- key_url: {{ rabbitmq.pkg.repo.rabbitmq.key_url }}
- require_in:
Expand Down

0 comments on commit 06da7bb

Please sign in to comment.