Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable order of operations #52

Open
hilmiller opened this issue Sep 9, 2014 · 0 comments
Open

Customizable order of operations #52

hilmiller opened this issue Sep 9, 2014 · 0 comments

Comments

@hilmiller
Copy link
Contributor

I think potential users of losf would be enticed to try it if there were a way to change the order of actions performed by losf. One example is starting a service that requires specific permissions and system commands run. The desired custom ordering would be something like:

Install package
Sync config files
Set file permissions
Set directory group permissions(x)
Run shell command(x)
Start service

(x) Not supported by losf, but just a thought-experiment.

Ideally in my opinion, losf would not order activity-types like services, permissions, and files. Instead, losf would order individual actions like allowing actions to have a dependency on other actions as puppet and ansible work. If losf were to get this feature, I could imagine the losf philosophy of "keep it simple" would result in something like what I've included below. A numeric "priority" value, with ties broken randomly. The lower the number, sooner losf executes it.

[ConfigFiles]
/etc/shadow                     = yes[1]
/etc/passwd                     = yes[1]
/etc/group                        = yes[1]

[Services]
hadoop-yarn-nodemanager         = on[999]
hadoop-hdfs-datanode                = on[999]
iptables                                        = off[1]

[Permissions]
/share                             = 0755[10]
/share/doc                      = 0755[10]
/etc/shadow                    = 0440[1]
/etc/hosts                        = 0644[999]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant