Skip to content

Commit

Permalink
Bump to version 0.2.0 (#1)
Browse files Browse the repository at this point in the history
It revises the systemd unit file and allows the setting of listening
address/port.
  • Loading branch information
psmiraglia committed Jul 4, 2017
1 parent 2e7092b commit 62e4141
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
cerebro-formula
===============

0.2.0 (2017-07-04)

- Allow setting of listening port/address

0.1.0 (2017-06-30)

- Added state to manage Cerebro user/group
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0
2 changes: 2 additions & 0 deletions cerebro/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cerebro:
user: cerebro
group: cerebro
# config
port: 9000
address: 0.0.0.0
secret: ''
auth_ldap: {}
# enabled: False
Expand Down
2 changes: 1 addition & 1 deletion cerebro/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ cerebro_running:
service.running:
- name: {{ cerebro.service }}
- enable: True
- require:
- watch:
- file: cerebro_systemd_unit
6 changes: 4 additions & 2 deletions cerebro/templates/cerebro.service.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ After=network.target remote-fs.target

[Service]
Type=simple
PIDFile={{ cerebro.home }}/cerebro.pid
User={{ cerebro.user }}
Group={{ cerebro.group }}
{%- if cerebro.java_home %}
Environment=JAVA_HOME={{ cerebro.java_home }}
{%- endif %}
ExecStart={{ cerebro.home }}/bin/cerebro -Dconfig.file={{ cerebro.home }}/conf/application.conf
ExecStart={{ cerebro.home }}/bin/cerebro \
-Dconfig.file={{ cerebro.home }}/conf/application.conf \
-Dhttp.port={{ cerebro.port }} \
-Dhttp.address={{ cerebro.address }}
Restart=on-failure
SyslogIdentifier={{ cerebro.service }}
WorkingDirectory={{ cerebro.home }}
Expand Down

0 comments on commit 62e4141

Please sign in to comment.