Skip to content

Commit 74eba33

Browse files
Merge pull request #3 from locationlabs/netq-repo-variable
add variable netq_repo_version and netq_repo
2 parents 88ea583 + 581000c commit 74eba33

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ Cumulus Linux 3.x
1111
## Role Variables
1212

1313
* `netq_backend_server`: IP of the netq server
14+
* `netq_repo_version`: Version of the netq repo, e.g. "netq-1.4"
1415

1516
## Dependencies
1617

1718
None
1819

20+
## Notes
21+
22+
This role will not handle the removal or existing repo entries in the event
23+
you are changing the repo version. This is left to the user. You could
24+
simply change "state: present" to "state: absent" for you previous
25+
version before updating to the new version.
26+
27+
1928
## Example Playbook
2029

2130
```yaml

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# defaul to "latest" unless overridden
2+
netq_repo_version: netq-latest

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- name: Add netq repo
99
apt_repository:
10-
repo: deb http://apps3.cumulusnetworks.com/repos/deb CumulusLinux-3 netq-latest
10+
repo: deb http://apps3.cumulusnetworks.com/repos/deb CumulusLinux-3 {{ netq_repo }}
1111
state: present
1212

1313
# The netq package installs addtional config to rsyslog

vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ netq_backend_config:
44
port: 6379
55
role: master
66
server: "{{ netq_backend_server|mandatory }}"
7+
8+
netq_repo: "{{ netq_repo_version }}"

0 commit comments

Comments
 (0)