Skip to content

Commit

Permalink
infra: add c10kserver role
Browse files Browse the repository at this point in the history
  • Loading branch information
dzeban committed Mar 9, 2018
1 parent 807c272 commit 80e676e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infrastructure/roles/c10kserver/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

c10kserver_version: 1.0
c10kserver_download_url:
deb: "https://github.com/dzeban/c10k/releases/download/v{{ c10kserver_version }}/c1m-servers_{{c10kserver_version}}.deb"
rpm: "https://github.com/dzeban/c10k/releases/download/v{{ c10kserver_version }}/c1m-servers_{{c10kserver_version}}.rpm"
13 changes: 13 additions & 0 deletions infrastructure/roles/c10kserver/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

- name: Ensure latest version of c10k server
dnf:
name: "{{ c10kserver_download_url['rpm'] }}"
state: latest
when: ansible_os_family == 'RedHat'

- name: Ensure latest version of c10k server
dnf:
name: "{{ c10kserver_download_url['deb'] }}"
state: latest
when: ansible_os_family == 'Debian'

0 comments on commit 80e676e

Please sign in to comment.