-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
4 changed files
with
234 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package distro | ||
|
||
import ( | ||
"github.com/tmrts/flamingo/pkg/sys" | ||
"github.com/tmrts/flamingo/pkg/sys/firewall/iptables" | ||
"github.com/tmrts/flamingo/pkg/sys/identity" | ||
"github.com/tmrts/flamingo/pkg/sys/initd/systemd" | ||
"github.com/tmrts/flamingo/pkg/sys/nss" | ||
) | ||
|
||
// CentOS returns the distribution implementation of CentOS | ||
// operating system that uses the given sys.Executor. | ||
func CentOS(exec sys.Executor) ContextConsumer { | ||
return &Implementation{ | ||
Executor: exec, | ||
|
||
ID: identity.NewManager(exec), | ||
NSS: &nss.Server{exec}, | ||
Firewall: &iptables.Implementation{exec}, | ||
//FileSystem: &file.System{exec}, | ||
//Sysconf: conf.Manager hostname, timedate, etc. sysctl for CentOS | ||
Initd: &systemd.Implementation{ | ||
UnitDir: "/etc/systemd/userexec", | ||
Exec: exec, | ||
}, | ||
} | ||
} |
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,4 @@ | ||
// Package distro contains the implementations of | ||
// different operating systems to be used for | ||
// contextualizing cloud instances. | ||
package distro |
Oops, something went wrong.