mirror of https://github.com/docker/docs.git
centos: add provisioner
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
cab167c21a
commit
065982b7d2
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue