Code Monkey home page Code Monkey logo

ansible-consul-template's People

Contributors

awarner-greshamtech avatar davidwittman avatar dombo avatar ernestas-poskus avatar gibbsoft avatar griggheo avatar jgodin-c2c avatar jonnangle avatar jpgrace avatar jsecchiero avatar krim avatar lewg avatar mjay-taskize avatar msabramo avatar palmerabollo avatar petershrom avatar robbiet480 avatar spinx avatar wilfriedroset avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-consul-template's Issues

release new version

Hello @griggheo !
Is it possible to release the latest version of your module ?
I actually like the latest PR and was going to do it and found somebody already did it ( Thanks @wilfriedroset )

j\x00

issue copying upstart script during install

Hi,

I am seeing the following error when installing on CentOS7/RHEL 7.

TASK [griggheo.consul-template : copy consul-template upstart service configuration] ***
fatal: [127.0.0.1]: FAILED! => {"changed": false, "checksum": "a77a962bc6c943ac70e8895d96a76d4c2d551a38", "msg": "Destination directory /etc/init does not exist"}
ignoring

TASK [griggheo.consul-template : copy consul-template init.d script] ***********
skipping: [127.0.0.1]

New version tag

Is it possible to release this new version ?
I would like to use the new dest parameter.

Regards.
J\x00

Systemd service fails due to redirected output

The consul-template service fails to start because of the attempt to redirect stdout to a log file. Systemd does not execute the ExecStart command as a shell, so these are passed as additional arguments to the consul-template command, which causes it to fail. See the output below:

# journalctl -u consul-template
-- Logs begin at Sat 2016-01-09 17:34:28 UTC, end at Sat 2016-01-09 18:39:27 UTC. --
Jan 09 18:32:29 mesos-slave-02 systemd[1]: Started consul-template.
Jan 09 18:32:29 mesos-slave-02 systemd[1]: Starting consul-template...
Jan 09 18:32:29 mesos-slave-02 consul-template[24970]: Consul Template returned errors:
Jan 09 18:32:29 mesos-slave-02 consul-template[24970]: cli: extra argument(s): [">>" "/var/log/consul-te
Jan 09 18:32:29 mesos-slave-02 systemd[1]: consul-template.service: main process exited, code=exited, st
Jan 09 18:32:29 mesos-slave-02 systemd[1]: Unit consul-template.service entered failed state.
Jan 09 18:32:29 mesos-slave-02 systemd[1]: consul-template.service failed.

I would suggest relying on journalctl for logging and ditching the log file when systemd is being used. I'd be happy to submit a PR for this, just thought I'd open an issue first to get your blessing.

systemd config changes for newer consul-template versions

I assume this role isn't being updated anymore, but wanted to put this here in case anyone uses it for newer versions (v0.18+) of consul-template. There needs to be some changes to ./templates/consul-template.service.systemd.j2 so that reload and stop/start works correctly. I am posting the full config I have that works:

[Unit]
Description=consul-template
Requires=network-online.target
After=network-online.target consul.service

[Service]
{% if consul_template_use_config_dir %}
ExecStart={{ consul_template_home }}/bin/{{ consul_template_binary }}  -config={{ consul_template_home }}/config
{% else %}
ExecStart={{ consul_template_home }}/bin/{{ consul_template_binary }}  -config={{ consul_template_home }}/config/{{ consul_template_config_file }}
{% endif %}
KillSignal=SIGINT
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.