This repository has been archived by the owner on Jul 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
108b5d6
commit f555375
Showing
5 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module Vagrant | ||
module ServiceManagerProvisioner | ||
class Provisioner < Vagrant.plugin("2", :provisioner) | ||
|
||
def configure(root_config) | ||
super(root_config) | ||
end | ||
|
||
def provision | ||
command = "sudo rm /etc/docker/ca.pem && sudo systemctl restart docker" | ||
@machine.communicate.execute(command) do |type, data| | ||
if type == :stderr | ||
@machine.ui.error(data) | ||
else | ||
@env.ui.info("# Provisioned docker provider") | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
require "vagrant" | ||
|
||
module Vagrant | ||
module ServiceManager | ||
class Plugin < Vagrant.plugin('2') | ||
class Plugin < Vagrant.plugin("2") | ||
name "service-manager" | ||
description "Service manager for services inside vagrant box." | ||
|
||
command 'service-manager' do | ||
require_relative 'command' | ||
Command | ||
end | ||
|
||
provisioner "docker" do | ||
require_relative "docker_provisioner" | ||
Provisioner | ||
end | ||
end | ||
end | ||
end | ||
|