diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c16f4..164f9b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,4 @@ ### Features * Install FlexLM dependencies. +* Copy `lmgrd` and `lmutil` binaries. diff --git a/README.md b/README.md index b4cfac8..4a9af55 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,11 @@ A role to manage Flexlm daemon. * **flexlm__packages_state** : State of package(s) [default : `present`]. * **flexlm__packages_manage** : If package(s) should be managed with this role [default : `True`]. * **flexlm__dependent_packages** : List of additional packages requested as 'flexlm' dependencies [default : `lsb-core`, `unzip`] +* **flexlm__lmgrd_version** : Version of `lmgrd` to use [default : `11.14.0.1`]. +* **flexlm__lmgrd_source** : Source of the `lmgrd` bin to send [default : `usr/local/bin/lmgrd`]. +* **flexlm__lmgrd_path** : The place to store `lmgrd` bin [default : `/usr/local/bin/lmgrd`]. +* **flexlm__lmutil_source** : Source of the `lmutil` bin to send [default : `usr/local/bin/lmutil`]. +* **flexlm__lmutil_path** : The place to store `lmutil` bin [default : `/usr/local/bin/lmutil`]. ## Example Playbook @@ -31,7 +36,9 @@ A role to manage Flexlm daemon. ## Configuration This role will : -* Do nothing right now. +* Copy the `lmgrd` and `lmutil` binaries to the node. + +The `lmgrd` and `lmutil` binaries comes from [Mathworks][mathworks download url] in version **flexlm__lmgrd_version**. ## Development @@ -56,3 +63,4 @@ Jérémy Gardais [flexlm github]: https://github.com/ipr-cnrs/flexlm [wtfpl website]: http://www.wtfpl.net/about/ [ipr website]: https://ipr.univ-rennes1.fr/ +[mathworks download url]: https://fr.mathworks.com/support/install/license_manager_files.html diff --git a/defaults/main.yml b/defaults/main.yml index ad82cac..0c4d055 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,3 +6,9 @@ flexlm__packages_state: 'present' flexlm__packages_manage: True flexlm__dependent_packages: [ 'lsb-core', 'unzip' ] +# bin +flexlm__lmgrd_version: '11.14.0.1' +flexlm__lmgrd_source: 'usr/local/bin/lmgrd' +flexlm__lmgrd_path: '/usr/local/bin/lmgrd' +flexlm__lmutil_source: 'usr/local/bin/lmutil' +flexlm__lmutil_path: '/usr/local/bin/lmutil' diff --git a/files/usr/local/bin/lmgrd.11.14.0.1 b/files/usr/local/bin/lmgrd.11.14.0.1 new file mode 100755 index 0000000..52546c2 Binary files /dev/null and b/files/usr/local/bin/lmgrd.11.14.0.1 differ diff --git a/files/usr/local/bin/lmutil b/files/usr/local/bin/lmutil new file mode 100755 index 0000000..3741143 Binary files /dev/null and b/files/usr/local/bin/lmutil differ diff --git a/tasks/main.yml b/tasks/main.yml index 88864bf..d4ea978 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,3 +13,20 @@ # }}} +# bin +- name: Add lmgrd bin + copy: + src: '{{ flexlm__lmgrd_source + "." + flexlm__lmgrd_version }}' + dest: '{{ flexlm__lmgrd_path + "." + flexlm__lmgrd_version }}' + owner: root + group: root + mode: 0755 + +- name: Add lmutil bin + copy: + src: '{{ flexlm__lmutil_source }}' + dest: '{{ flexlm__lmutil_path }}' + owner: root + group: root + mode: 0755 +