Skip to content

Commit

Permalink
Clean up warnings in provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
agschwender committed Apr 20, 2017
1 parent ac77748 commit f556d2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Vagrant.configure("2") do |config|
# argument is a set of non-required options.
config.vm.synced_folder ".", "/var/www/pilbox", :owner => "vagrant"

# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# Enable provisioning with Ansible. Ansible playbooks are contained
# in a directory path relative to this Vagrantfile.
config.vm.provision :ansible do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.inventory_path = "provisioning/vagrant"
Expand Down
9 changes: 9 additions & 0 deletions provisioning/files/etc/init.d/pilbox
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: pilbox
# Required-Start: $local_fs $remote_fs $syslog
# Required-Stop: $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enables pilbox service
# Description: Enables pilbox service
### END INIT INFO

set -e

Expand Down
4 changes: 2 additions & 2 deletions provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ansible-playbook -i <inventory> playbook.yml
#
# VERSION 0.1
# ANSIBLE-VERSION 1.2.2
# ANSIBLE-VERSION 2.3.0

- hosts: vagrant
user: vagrant
Expand Down Expand Up @@ -74,7 +74,7 @@
command: update-rc.d pilbox defaults

- name: running pilbox check
service: name=pilbox state=running enabled=yes
service: name=pilbox state=started enabled=yes

handlers:
- name: restart pilbox
Expand Down

0 comments on commit f556d2f

Please sign in to comment.