mgmt is a programming language created in 2015 by James Shubin.
#291on PLDB | 9Years Old |
git clone https://github.com/purpleidea/mgmt
Next generation distributed, event-driven, parallel config management!
import "datetime"
$is_friday = datetime.weekday(datetime.now()) == "friday"
file "/srv/files/" {
state => $const.res.file.state.exists,
mode => if $is_friday { # this updates the mode, the instant it changes!
"0550"
} else {
"0770"
},
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | # A comment | |
Line Comments | ✓ | # A comment | # |
Semantic Indentation | X |