centos: add provisioner

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-05-12 22:55:13 -04:00
parent cab167c21a
commit 065982b7d2
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
package provision
import (
"github.com/docker/machine/drivers"
)
const (
// TODO: eventually the RPM install process will be integrated
// into the get.docker.com install script; for now
// we install via vendored RPMs
dockerCentosRPMPath = "https://docker-mcn.s3.amazonaws.com/public/redhat/rpms/docker-engine-1.6.1-0.0.20150511.171646.git1b47f9f.el7.centos.x86_64.rpm"
)
func init() {
Register("Centos", &RegisteredProvisioner{
New: NewCentosProvisioner,
})
}
func NewCentosProvisioner(d drivers.Driver) Provisioner {
g := GenericProvisioner{
DockerOptionsDir: "/etc/docker",
DaemonOptionsFile: "/usr/lib/systemd/system/docker.service",
OsReleaseId: "centos",
Packages: []string{},
Driver: d,
}
p := &CentosProvisioner{
RedHatProvisioner{
g,
dockerCentosRPMPath,
},
}
return p
}
type CentosProvisioner struct {
RedHatProvisioner
}