<s> from kokki import Directory , Execute , File , Template , Package , Service <EOL> env . include_recipe ( "<STR_LIT>" ) <EOL> if env . system . platform in ( "<STR_LIT>" , "<STR_LIT>" ) : <EOL> Directory ( "<STR_LIT>" , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> recursive = True ) <EOL> Execute ( "<STR_LIT>" , <EOL> command = "<STR_LIT>" , <EOL> action = "<STR_LIT>" ) <EOL> File ( "<STR_LIT>" , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> content = Template ( "<STR_LIT>" ) , <EOL> notifies = [ ( "<STR_LIT>" , env . resources [ "<STR_LIT>" ] [ "<STR_LIT>" ] , True ) ] ) <EOL> File ( "<STR_LIT>" , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> content = Template ( "<STR_LIT>" ) ) <EOL> Package ( "<STR_LIT>" ) <EOL> Service ( "<STR_LIT>" , <EOL> supports_status = True , <EOL> supports_restart = True ) <EOL> Execute ( "<STR_LIT>" % env . config . mysql . datadir , <EOL> creates = env . config . mysql . datadir ) <EOL> File ( "<STR_LIT>" , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> content = Template ( "<STR_LIT>" ) , <EOL> notifies = [ ( "<STR_LIT>" , env . resources [ "<STR_LIT>" ] [ "<STR_LIT>" ] , True ) ] ) <EOL> File ( "<STR_LIT>" , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> content = Template ( "<STR_LIT>" ) ) <EOL> Execute ( "<STR_LIT>" % env . config . mysql . server_root_password , <EOL> action = "<STR_LIT>" , <EOL> subscribes = [ ( "<STR_LIT>" , env . resources [ "<STR_LIT>" ] [ "<STR_LIT>" ] , True ) ] ) </s>
