Skip to content

Commit

Permalink
Merge pull request #1 from jhadvig/salt_update
Browse files Browse the repository at this point in the history
Update salt script for build-controller
  • Loading branch information
csrwng committed Aug 26, 2014
2 parents 7da3b8a + 687e35d commit 3c33b42
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions cluster/saltbase/salt/build-controller/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
- group
- mode

build-controller-third-party-go:
file.recurse:
- name: {{ root }}/src
- source: salt://third-party/go/src
- user: root
{% if grains['os_family'] == 'RedHat' %}
- group: root
{% else %}
- group: staff
{% endif %}
- dir_mode: 775
- file_mode: 664
- makedirs: True
- recurse:
- user
- group
- mode

{{ environment_file }}:
file.managed:
- source: salt://build-controller/default
Expand All @@ -51,14 +33,14 @@ build-controller-third-party-go:
- mode: 644

build-controller-build:
cmd.wait:
cmd.run:
- cwd: {{ root }}
- names:
- go build {{ package }}/cmd/build-controller
- env:
- PATH: {{ grains['path'] }}:/usr/local/bin
- GOPATH: {{ root }}
- watch:
- GOPATH: {{ root }}:{{ package_dir }}/Godeps/_workspace
- require:
- file: {{ package_dir }}

/usr/local/bin/build-controller:
Expand Down

0 comments on commit 3c33b42

Please sign in to comment.