Skip to content

Instantly share code, notes, and snippets.

@domcleal domcleal/output_debug.md

forked from riton/output_debug.md
Last active Aug 29, 2015
Embed
What would you like to do?
Info: Applying configuration version '1418826679'
Debug: Augeas[kerberos_etc_services](provider=augeas): Opening augeas with root /, lens path /var/lib/puppet/lib/augeas/lenses, flags 32
Debug: Augeas[kerberos_etc_services](provider=augeas): Augeas version 1.0.0 is installed
Debug: Augeas[kerberos_etc_services](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'defnode' with params ["kerberostcp", "/files/etc/services/service-name[.=\"kerberos\"][protocol = \"tcp\"]", "kerberos"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/port", "88"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/protocol", "tcp"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'remove' with params ["$kerberostcp/alias"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'ins' with params ["alias", "after", "$kerberostcp/protocol"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/alias[1]", "kerberos5"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/alias[2]", "krb5"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/alias[3]", "kerberos-sec"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/#comment", "Kerberos v5"]
Debug: Augeas[kerberos_etc_services](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[kerberos_etc_services](provider=augeas): /augeas/files/etc/services/error = put_failed
Debug: Augeas[kerberos_etc_services](provider=augeas): /augeas/files/etc/services/error/path = /files/etc/services/service-name
Debug: Augeas[kerberos_etc_services](provider=augeas): /augeas/files/etc/services/error/lens = /usr/share/augeas/lenses/dist/services.aug:75.15-77.33:
Debug: Augeas[kerberos_etc_services](provider=augeas): /augeas/files/etc/services/error/message = Failed to match 
    { /port/ = /[0-9]+/ }{ /protocol/ = /[A-Za-z]+/ }({ /alias/ = /[*+.-9A-Z_a-z-]+/ })*({ /#comment/ = /[^\001-\004\t\n\r ][^\001-\004\n]*[^\001-\004\t\n\r ]|[^\001-\004\t\n\r ]/ } | ())
  with tree
    { "port" = "88" } { "protocol" = "tcp" } { "alias" = "kerberos5" } { "#comment" = "Kerberos v5" } { "alias" = "krb5" } { "alias" = "kerberos-sec" }
Debug: Augeas[kerberos_etc_services](provider=augeas): Closed the augeas connection
Error: /Stage[main]/Main/Augeas[kerberos_etc_services]: Could not evaluate: Saving failed, see debug
$port = 88
$comment = 'Kerberos v5'
augeas { 'kerberos_etc_services':
context => '/files/etc/services',
changes => [
'defnode kerberostcp service-name[.="kerberos"][protocol = "tcp"] kerberos',
"set \$kerberostcp/port ${port}",
'set $kerberostcp/protocol tcp',
'remove $kerberostcp/alias',
'ins alias after $kerberostcp/protocol',
'set $kerberostcp/alias[1] kerberos5',
'set $kerberostcp/alias[2] krb5',
'set $kerberostcp/alias[3] kerberos-sec',
"set \$kerberostcp/#comment '${comment}'",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.