kbrebanov / ansible-nomad Goto Github PK
View Code? Open in Web Editor NEWAnsible nomad role
License: BSD 2-Clause "Simplified" License
Ansible nomad role
License: BSD 2-Clause "Simplified" License
I'm currently evaluating nomad and this role looked the best to get the job done fast - thank you for creating it ๐
I've run into an issue though - our machines never access 'root' user and we have a special user which can do certain things which are permitted via sudo.
Given that:
nomad_download_dir
to /tmp
become: true
is set in the download and unzip tasksIs there any reason for using root user here? Feels like always downloading to tmp or ~ of the current user would do the trick.
Happy to send a PR which addresses this issue, but it's always better to check first ;-) - I might be missign something.
Thanks
I used this playbook:
- hosts: nomad_servers
vars:
use_nomad: true
nomad_server: true
nomad_server_bootstrap_expect: "{{ play_hosts|length }}"
roles:
- role: kbrebanov.nomad
tags: nomad
when: use_nomad
sudo: yes
and the result was:
ENDOR\marca@sjc-cmdb01:~$ cat /etc/init/nomad.conf
description "Service for nomad"
author "Kevin Brebanov"
start on filesystem or runlevel [2345]
stop on shutdown
reload signal SIGHUP
respawn
respawn limit 10 10
kill timeout 10
script
end script
post-stop script
rm -f /var/run/nomad.pid
end script
Note how the script for launching nomad is blank.
It's documented, but only nomad_addresses_serf is used in nomad.hcl.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.