Possibility to set working directory and licence file in the service unit
This commit is contained in:
		
							parent
							
								
									ae8bf35f72
								
							
						
					
					
						commit
						a39a5d2e71
					
				|  | @ -7,3 +7,4 @@ | |||
| * Ensure to have a symlink for `lmgrd` to it's last version. | ||||
| * Create a specific user to launch `lmgrd`. | ||||
| * Set up a systemd service. | ||||
| * Possibility to set working directory and licence file in the service unit. | ||||
|  |  | |||
							
								
								
									
										12
									
								
								README.md
								
								
								
								
							
							
						
						
									
										12
									
								
								README.md
								
								
								
								
							|  | @ -23,6 +23,7 @@ A role to manage Flexlm daemon. | |||
| * **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`]. | ||||
| * **flexlm__user_name** : Username used to launch `lmgrd` [default : `flexlm`]. | ||||
| * **flexlm__licence_file** : Licence file to deserve [default : `/opt/flexlm/VENDOR/licence.lic`]. | ||||
| * **flexlm__service_manage** : If Licence Manager service should be managed with this role [default : `True`]. | ||||
| * **flexlm__service_enabled** : If Licence Manager service should be enable at startup [default : `True`]. | ||||
| * **flexlm__service_name** : Service name [default : `flexlm`]. | ||||
|  | @ -41,6 +42,17 @@ A role to manage Flexlm daemon. | |||
|     - role: ipr-cnrs.flexlm | ||||
| ``` | ||||
| 
 | ||||
| * Manage Flexlm to provide Intel Fortran : | ||||
| 
 | ||||
| ``` yml | ||||
| - hosts: intel-lm | ||||
|   croles: | ||||
|     - role: ipr-cnrs.flexlm | ||||
|       flexlm__service_working_directory: '/opt/intel/bin' | ||||
|       flexlm__licence_file: '/opt/intel/etc/license.lic' | ||||
|       flexlm__service_description: 'Licence Manager for Intel Fortran' | ||||
| ``` | ||||
| 
 | ||||
| ## Configuration | ||||
| 
 | ||||
| This role will : | ||||
|  |  | |||
|  | @ -16,6 +16,9 @@ flexlm__lmutil_path: '/usr/local/bin/lmutil' | |||
| # user | ||||
| flexlm__user_name: 'flexlm' | ||||
| 
 | ||||
| # licence | ||||
| flexlm__licence_file: '/opt/flexlm/VENDOR/licence.lic' | ||||
| 
 | ||||
| # service | ||||
| flexlm__service_manage: True | ||||
| flexlm__service_enabled: True | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ After=network.target | |||
| Type=simple | ||||
| User={{ flexlm__user_name }} | ||||
| WorkingDirectory={{ flexlm__service_working_directory }} | ||||
| ExecStart={{ flexlm__lmgrd_path }} -z -c licence.lic | ||||
| ExecStart={{ flexlm__lmgrd_path }} -z -c {{ flexlm__licence_file }} | ||||
| SuccessExitStatus=15 | ||||
| Restart=always | ||||
| RestartSec=30 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue