Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 2, column: 6, }, end: Position { line: 2, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 4, column: 3, }, end: Position { line: 4, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 4, column: 9, }, end: Position { line: 4, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hadoopConf", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 7, column: 19, }, end: Position { line: 7, column: 25, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./conf.nix", span: Span { start: Position { line: 7, column: 26, }, end: Position { line: 7, column: 36, }, }, }, ), ], span: Span { start: Position { line: 7, column: 26, }, end: Position { line: 7, column: 36, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 47, }, end: Position { line: 7, column: 50, }, }, }, ), Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 7, column: 51, }, end: Position { line: 7, column: 55, }, }, }, ), Raw( PartRaw { content: "lib", span: Span { start: Position { line: 7, column: 56, }, end: Position { line: 7, column: 59, }, }, }, ), ], span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 60, }, }, }, ), ], span: Span { start: Position { line: 7, column: 37, }, end: Position { line: 7, column: 62, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 64, }, }, }, ), ], span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 65, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hadoopServiceOption", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 22, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "serviceName", default: None, }, FunctionHeadDestructuredArgument { identifier: "firewallOption", default: Some( Identifier( Identifier { id: "true", span: Span { start: Position { line: 10, column: 57, }, end: Position { line: 10, column: 61, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "extraOpts", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 10, column: 75, }, end: Position { line: 10, column: 79, }, }, }, ), ), }, ], }, ), body: BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 11, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 30, }, end: Position { line: 11, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 11, column: 34, }, end: Position { line: 11, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "serviceName", span: Span { start: Position { line: 11, column: 40, }, end: Position { line: 11, column: 51, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartIfChanged", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 12, column: 24, }, end: Position { line: 12, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 13, column: 14, }, end: Position { line: 13, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 13, column: 20, }, end: Position { line: 13, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 21, }, end: Position { line: 14, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 25, }, end: Position { line: 14, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Automatically restart the service on config change.\nThis can be set to false to defer restarts on clusters running critical applications.\nPlease consider the security implications of inadvertently running an older version,\nand the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.\n", span: Span { start: Position { line: 15, column: 1, }, end: Position { line: 19, column: 7, }, }, }, ), ], span: Span { start: Position { line: 14, column: 31, }, end: Position { line: 19, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 20, column: 17, }, end: Position { line: 20, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 12, column: 33, }, end: Position { line: 21, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 22, column: 5, }, end: Position { line: 22, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 22, column: 18, }, end: Position { line: 22, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 23, column: 26, }, end: Position { line: 23, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 23, column: 33, }, end: Position { line: 23, column: 36, }, }, }, ), ], }, ), span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 24, column: 17, }, end: Position { line: 24, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 25, column: 21, }, end: Position { line: 25, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 25, column: 25, }, end: Position { line: 25, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Extra command line flags to pass to ", span: Span { start: Position { line: 25, column: 32, }, end: Position { line: 25, column: 82, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "serviceName", span: Span { start: Position { line: 25, column: 70, }, end: Position { line: 25, column: 81, }, }, }, ), }, ), ], span: Span { start: Position { line: 25, column: 31, }, end: Position { line: 25, column: 83, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "-Dcom.sun.management.jmxremote", span: Span { start: Position { line: 27, column: 10, }, end: Position { line: 27, column: 40, }, }, }, ), ], span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 41, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "-Dcom.sun.management.jmxremote.port=8010", span: Span { start: Position { line: 28, column: 10, }, end: Position { line: 28, column: 50, }, }, }, ), ], span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 51, }, }, }, ), ], span: Span { start: Position { line: 26, column: 17, }, end: Position { line: 29, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 22, column: 26, }, end: Position { line: 30, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraEnv", span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 31, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 32, column: 26, }, end: Position { line: 32, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 32, column: 34, }, end: Position { line: 32, column: 37, }, }, }, ), ], }, ), span: Span { start: Position { line: 32, column: 14, }, end: Position { line: 32, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 33, column: 7, }, end: Position { line: 33, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 33, column: 17, }, end: Position { line: 33, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 34, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 34, column: 25, }, end: Position { line: 34, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Extra environment variables for ", span: Span { start: Position { line: 34, column: 32, }, end: Position { line: 34, column: 78, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "serviceName", span: Span { start: Position { line: 34, column: 66, }, end: Position { line: 34, column: 77, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 31, }, end: Position { line: 34, column: 79, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 31, column: 24, }, end: Position { line: 35, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 10, column: 83, }, end: Position { line: 36, column: 4, }, }, }, ), operator: Update, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 22, }, }, }, ), arguments: [ Identifier( Identifier { id: "firewallOption", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 37, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 37, column: 20, }, end: Position { line: 37, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 38, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 38, column: 14, }, end: Position { line: 38, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 38, column: 20, }, end: Position { line: 38, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 39, column: 17, }, end: Position { line: 39, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 21, }, end: Position { line: 40, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 25, }, end: Position { line: 40, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Open firewall ports for ", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 70, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "serviceName", span: Span { start: Position { line: 40, column: 58, }, end: Position { line: 40, column: 69, }, }, }, ), }, ), Raw( PartRaw { content: ".", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 71, }, }, }, ), ], span: Span { start: Position { line: 40, column: 31, }, end: Position { line: 40, column: 72, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 37, column: 29, }, end: Position { line: 41, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 38, }, end: Position { line: 42, column: 4, }, }, }, ), ], }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 42, column: 10, }, end: Position { line: 42, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "extraOpts", span: Span { start: Position { line: 42, column: 25, }, end: Position { line: 42, column: 34, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 42, column: 38, }, end: Position { line: 42, column: 42, }, }, }, ), }, ), Identifier( Identifier { id: "extraOpts", span: Span { start: Position { line: 42, column: 44, }, end: Position { line: 42, column: 53, }, }, }, ), ], }, ), }, ), }, ), span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 42, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hadoopServiceConfig", span: Span { start: Position { line: 45, column: 3, }, end: Position { line: 45, column: 22, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "name", default: None, }, FunctionHeadDestructuredArgument { identifier: "serviceOptions", default: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 24, }, end: Position { line: 47, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 47, column: 32, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toLower", span: Span { start: Position { line: 47, column: 36, }, end: Position { line: 47, column: 43, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 47, column: 44, }, end: Position { line: 47, column: 48, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 47, column: 33, }, end: Position { line: 47, column: 50, }, }, }, ), }, ), ], default: None, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "description", default: Some( String( String_ { parts: [ Raw( PartRaw { content: "Hadoop HDFS ", span: Span { start: Position { line: 48, column: 22, }, end: Position { line: 48, column: 41, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 48, column: 36, }, end: Position { line: 48, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 21, }, end: Position { line: 48, column: 42, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "User", default: Some( String( String_ { parts: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 49, column: 15, }, end: Position { line: 49, column: 19, }, }, }, ), ], span: Span { start: Position { line: 49, column: 14, }, end: Position { line: 49, column: 20, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "allowedTCPPorts", default: Some( List( List { elements: [], span: Span { start: Position { line: 50, column: 25, }, end: Position { line: 50, column: 28, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "preStart", default: Some( String( String_ { parts: [], span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 20, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "environment", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 24, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "extraConfig", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 53, column: 21, }, end: Position { line: 53, column: 24, }, }, }, ), ), }, ], }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 56, column: 7, }, end: Position { line: 56, column: 11, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 56, column: 12, }, end: Position { line: 56, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 56, column: 27, }, end: Position { line: 56, column: 33, }, }, }, ), ], default: None, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkMerge", span: Span { start: Position { line: 56, column: 36, }, end: Position { line: 56, column: 43, }, }, }, ), arguments: [ List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 16, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 57, column: 17, }, end: Position { line: 57, column: 25, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "hdfs-", span: Span { start: Position { line: 57, column: 27, }, end: Position { line: 57, column: 47, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toLower", span: Span { start: Position { line: 57, column: 34, }, end: Position { line: 57, column: 41, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 57, column: 42, }, end: Position { line: 57, column: 46, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 57, column: 26, }, end: Position { line: 57, column: 48, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 58, column: 19, }, end: Position { line: 58, column: 30, }, }, }, ), Raw( PartRaw { content: "preStart", span: Span { start: Position { line: 58, column: 31, }, end: Position { line: 58, column: 39, }, }, }, ), ], span: Span { start: Position { line: 57, column: 52, }, end: Position { line: 58, column: 40, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 59, column: 11, }, end: Position { line: 59, column: 22, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "environment", span: Span { start: Position { line: 59, column: 25, }, end: Position { line: 59, column: 36, }, }, }, ), operator: Update, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 59, column: 40, }, end: Position { line: 59, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraEnv", span: Span { start: Position { line: 59, column: 55, }, end: Position { line: 59, column: 63, }, }, }, ), ], default: None, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 60, column: 11, }, end: Position { line: 60, column: 19, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 60, column: 25, }, end: Position { line: 60, column: 42, }, }, }, ), ], span: Span { start: Position { line: 60, column: 24, }, end: Position { line: 60, column: 43, }, }, }, ), ], span: Span { start: Position { line: 60, column: 22, }, end: Position { line: 60, column: 45, }, }, }, ), }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 61, column: 20, }, end: Position { line: 61, column: 34, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "restartIfChanged", span: Span { start: Position { line: 61, column: 36, }, end: Position { line: 61, column: 52, }, }, }, ), ], span: Span { start: Position { line: 57, column: 52, }, end: Position { line: 61, column: 53, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 62, column: 11, }, end: Position { line: 62, column: 24, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 63, column: 21, }, end: Position { line: 63, column: 25, }, }, }, ), ], span: Span { start: Position { line: 62, column: 28, }, end: Position { line: 63, column: 26, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "SyslogIdentifier", span: Span { start: Position { line: 64, column: 13, }, end: Position { line: 64, column: 29, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hdfs-", span: Span { start: Position { line: 64, column: 33, }, end: Position { line: 64, column: 53, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toLower", span: Span { start: Position { line: 64, column: 40, }, end: Position { line: 64, column: 47, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 64, column: 48, }, end: Position { line: 64, column: 52, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 64, column: 32, }, end: Position { line: 64, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 65, column: 13, }, end: Position { line: 65, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 65, column: 28, }, end: Position { line: 65, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 65, column: 32, }, end: Position { line: 65, column: 39, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/hdfs --config ", span: Span { start: Position { line: 65, column: 26, }, end: Position { line: 65, column: 59, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "hadoopConf", span: Span { start: Position { line: 65, column: 61, }, end: Position { line: 65, column: 71, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 65, column: 26, }, end: Position { line: 65, column: 73, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toLower", span: Span { start: Position { line: 65, column: 75, }, end: Position { line: 65, column: 82, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 65, column: 83, }, end: Position { line: 65, column: 87, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 65, column: 26, }, end: Position { line: 65, column: 89, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArgs", span: Span { start: Position { line: 65, column: 91, }, end: Position { line: 65, column: 106, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 65, column: 107, }, end: Position { line: 65, column: 121, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 65, column: 122, }, end: Position { line: 65, column: 132, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 65, column: 25, }, end: Position { line: 65, column: 134, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 66, column: 13, }, end: Position { line: 66, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 66, column: 24, }, end: Position { line: 66, column: 30, }, }, }, ), ], span: Span { start: Position { line: 66, column: 23, }, end: Position { line: 66, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 62, column: 27, }, end: Position { line: 67, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 57, column: 51, }, end: Position { line: 68, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 17, }, }, }, ), Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 70, column: 18, }, end: Position { line: 70, column: 24, }, }, }, ), Raw( PartRaw { content: "gatewayRole", span: Span { start: Position { line: 70, column: 25, }, end: Position { line: 70, column: 36, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 70, column: 37, }, end: Position { line: 70, column: 43, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 70, column: 46, }, end: Position { line: 70, column: 50, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 19, }, }, }, ), Raw( PartRaw { content: "firewall", span: Span { start: Position { line: 72, column: 20, }, end: Position { line: 72, column: 28, }, }, }, ), Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 72, column: 29, }, end: Position { line: 72, column: 44, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 72, column: 47, }, end: Position { line: 72, column: 51, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 73, column: 13, }, end: Position { line: 73, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasAttr", span: Span { start: Position { line: 73, column: 22, }, end: Position { line: 73, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 73, column: 31, }, end: Position { line: 73, column: 43, }, }, }, ), ], span: Span { start: Position { line: 73, column: 30, }, end: Position { line: 73, column: 44, }, }, }, ), Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 73, column: 45, }, end: Position { line: 73, column: 59, }, }, }, ), ], }, ), operator: LogicalAnd, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "serviceOptions", span: Span { start: Position { line: 73, column: 64, }, end: Position { line: 73, column: 78, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 73, column: 79, }, end: Position { line: 73, column: 91, }, }, }, ), ], default: None, }, ), }, ), Identifier( Identifier { id: "allowedTCPPorts", span: Span { start: Position { line: 74, column: 11, }, end: Position { line: 74, column: 26, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 56, column: 45, }, end: Position { line: 75, column: 8, }, }, }, ), Identifier( Identifier { id: "extraConfig", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 20, }, }, }, ), ], span: Span { start: Position { line: 56, column: 44, }, end: Position { line: 75, column: 21, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 46, column: 5, }, end: Position { line: 76, column: 6, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 80, column: 3, }, end: Position { line: 80, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 80, column: 11, }, end: Position { line: 80, column: 19, }, }, }, ), Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 80, column: 20, }, end: Position { line: 80, column: 26, }, }, }, ), Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 80, column: 27, }, end: Position { line: 80, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "namenode", span: Span { start: Position { line: 82, column: 5, }, end: Position { line: 82, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceOption", span: Span { start: Position { line: 82, column: 16, }, end: Position { line: 82, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceName", span: Span { start: Position { line: 82, column: 38, }, end: Position { line: 82, column: 49, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HDFS NameNode", span: Span { start: Position { line: 82, column: 53, }, end: Position { line: 82, column: 66, }, }, }, ), ], span: Span { start: Position { line: 82, column: 52, }, end: Position { line: 82, column: 67, }, }, }, ), }, ), ], span: Span { start: Position { line: 82, column: 36, }, end: Position { line: 82, column: 70, }, }, }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "formatOnInit", span: Span { start: Position { line: 83, column: 7, }, end: Position { line: 83, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 83, column: 22, }, end: Position { line: 83, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 84, column: 9, }, end: Position { line: 84, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 84, column: 16, }, end: Position { line: 84, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 84, column: 22, }, end: Position { line: 84, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 85, column: 9, }, end: Position { line: 85, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 85, column: 19, }, end: Position { line: 85, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 86, column: 23, }, end: Position { line: 86, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 86, column: 27, }, end: Position { line: 86, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Format HDFS namenode on first start. This is useful for quickly spinning up\nephemeral HDFS clusters with a single namenode.\nFor HA clusters, initialization involves multiple steps across multiple nodes.\nFollow this guide to initialize an HA cluster manually:\n\n", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 92, column: 9, }, }, }, ), ], span: Span { start: Position { line: 86, column: 33, }, end: Position { line: 92, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 83, column: 31, }, end: Position { line: 93, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 82, column: 74, }, end: Position { line: 94, column: 6, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "datanode", span: Span { start: Position { line: 96, column: 5, }, end: Position { line: 96, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceOption", span: Span { start: Position { line: 96, column: 16, }, end: Position { line: 96, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceName", span: Span { start: Position { line: 96, column: 38, }, end: Position { line: 96, column: 49, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HDFS DataNode", span: Span { start: Position { line: 96, column: 53, }, end: Position { line: 96, column: 66, }, }, }, ), ], span: Span { start: Position { line: 96, column: 52, }, end: Position { line: 96, column: 67, }, }, }, ), }, ), ], span: Span { start: Position { line: 96, column: 36, }, end: Position { line: 96, column: 70, }, }, }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dataDirs", span: Span { start: Position { line: 97, column: 7, }, end: Position { line: 97, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 97, column: 18, }, end: Position { line: 97, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 98, column: 9, }, end: Position { line: 98, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 98, column: 19, }, end: Position { line: 98, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 99, column: 9, }, end: Position { line: 99, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 99, column: 23, }, end: Position { line: 99, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 99, column: 27, }, end: Position { line: 99, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Tier and path definitions for datanode storage.", span: Span { start: Position { line: 99, column: 34, }, end: Position { line: 99, column: 81, }, }, }, ), ], span: Span { start: Position { line: 99, column: 33, }, end: Position { line: 99, column: 82, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 100, column: 21, }, end: Position { line: 100, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 100, column: 28, }, end: Position { line: 100, column: 34, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 100, column: 36, }, end: Position { line: 100, column: 42, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "submodule", span: Span { start: Position { line: 100, column: 44, }, end: Position { line: 100, column: 53, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 101, column: 11, }, end: Position { line: 101, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 102, column: 13, }, end: Position { line: 102, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 102, column: 20, }, end: Position { line: 102, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 103, column: 15, }, end: Position { line: 103, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "enum", span: Span { start: Position { line: 103, column: 22, }, end: Position { line: 103, column: 26, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "SSD", span: Span { start: Position { line: 103, column: 30, }, end: Position { line: 103, column: 33, }, }, }, ), ], span: Span { start: Position { line: 103, column: 29, }, end: Position { line: 103, column: 34, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "DISK", span: Span { start: Position { line: 103, column: 36, }, end: Position { line: 103, column: 40, }, }, }, ), ], span: Span { start: Position { line: 103, column: 35, }, end: Position { line: 103, column: 41, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "ARCHIVE", span: Span { start: Position { line: 103, column: 43, }, end: Position { line: 103, column: 50, }, }, }, ), ], span: Span { start: Position { line: 103, column: 42, }, end: Position { line: 103, column: 51, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "RAM_DISK", span: Span { start: Position { line: 103, column: 53, }, end: Position { line: 103, column: 61, }, }, }, ), ], span: Span { start: Position { line: 103, column: 52, }, end: Position { line: 103, column: 62, }, }, }, ), ], span: Span { start: Position { line: 103, column: 27, }, end: Position { line: 103, column: 64, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 104, column: 15, }, end: Position { line: 104, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 104, column: 29, }, end: Position { line: 104, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 104, column: 33, }, end: Position { line: 104, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Storage types ([SSD]/[DISK]/[ARCHIVE]/[RAM_DISK]) for HDFS storage policies.\n", span: Span { start: Position { line: 105, column: 1, }, end: Position { line: 106, column: 15, }, }, }, ), ], span: Span { start: Position { line: 104, column: 39, }, end: Position { line: 106, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 102, column: 29, }, end: Position { line: 107, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 108, column: 13, }, end: Position { line: 108, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 108, column: 20, }, end: Position { line: 108, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 109, column: 15, }, end: Position { line: 109, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "path", span: Span { start: Position { line: 109, column: 22, }, end: Position { line: 109, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 110, column: 15, }, end: Position { line: 110, column: 22, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/hadoop/hdfs/dn", span: Span { start: Position { line: 110, column: 28, }, end: Position { line: 110, column: 51, }, }, }, ), ], span: Span { start: Position { line: 110, column: 27, }, end: Position { line: 110, column: 52, }, }, }, ), ], span: Span { start: Position { line: 110, column: 25, }, end: Position { line: 110, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 111, column: 15, }, end: Position { line: 111, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 111, column: 29, }, end: Position { line: 111, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 111, column: 33, }, end: Position { line: 111, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Determines where on the local filesystem a data node should store its blocks.", span: Span { start: Position { line: 111, column: 40, }, end: Position { line: 111, column: 117, }, }, }, ), ], span: Span { start: Position { line: 111, column: 39, }, end: Position { line: 111, column: 118, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 108, column: 29, }, end: Position { line: 112, column: 14, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 101, column: 21, }, end: Position { line: 113, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 100, column: 54, }, end: Position { line: 114, column: 10, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 100, column: 16, }, end: Position { line: 114, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 97, column: 27, }, end: Position { line: 115, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 96, column: 74, }, end: Position { line: 116, column: 6, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "journalnode", span: Span { start: Position { line: 118, column: 5, }, end: Position { line: 118, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceOption", span: Span { start: Position { line: 118, column: 19, }, end: Position { line: 118, column: 38, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceName", span: Span { start: Position { line: 118, column: 41, }, end: Position { line: 118, column: 52, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HDFS JournalNode", span: Span { start: Position { line: 118, column: 56, }, end: Position { line: 118, column: 72, }, }, }, ), ], span: Span { start: Position { line: 118, column: 55, }, end: Position { line: 118, column: 73, }, }, }, ), }, ), ], span: Span { start: Position { line: 118, column: 39, }, end: Position { line: 118, column: 76, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zkfc", span: Span { start: Position { line: 120, column: 5, }, end: Position { line: 120, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceOption", span: Span { start: Position { line: 120, column: 12, }, end: Position { line: 120, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceName", span: Span { start: Position { line: 121, column: 7, }, end: Position { line: 121, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HDFS ZooKeeper failover controller", span: Span { start: Position { line: 121, column: 22, }, end: Position { line: 121, column: 56, }, }, }, ), ], span: Span { start: Position { line: 121, column: 21, }, end: Position { line: 121, column: 57, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firewallOption", span: Span { start: Position { line: 122, column: 7, }, end: Position { line: 122, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 122, column: 24, }, end: Position { line: 122, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 120, column: 32, }, end: Position { line: 123, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "httpfs", span: Span { start: Position { line: 125, column: 5, }, end: Position { line: 125, column: 11, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceOption", span: Span { start: Position { line: 125, column: 14, }, end: Position { line: 125, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceName", span: Span { start: Position { line: 125, column: 36, }, end: Position { line: 125, column: 47, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HDFS JournalNode", span: Span { start: Position { line: 125, column: 51, }, end: Position { line: 125, column: 67, }, }, }, ), ], span: Span { start: Position { line: 125, column: 50, }, end: Position { line: 125, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 125, column: 34, }, end: Position { line: 125, column: 71, }, }, }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "tempPath", span: Span { start: Position { line: 126, column: 7, }, end: Position { line: 126, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 126, column: 18, }, end: Position { line: 126, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 127, column: 9, }, end: Position { line: 127, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 127, column: 16, }, end: Position { line: 127, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 127, column: 22, }, end: Position { line: 127, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 128, column: 9, }, end: Position { line: 128, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/tmp/hadoop/httpfs", span: Span { start: Position { line: 128, column: 20, }, end: Position { line: 128, column: 38, }, }, }, ), ], span: Span { start: Position { line: 128, column: 19, }, end: Position { line: 128, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 129, column: 9, }, end: Position { line: 129, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 129, column: 23, }, end: Position { line: 129, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 129, column: 27, }, end: Position { line: 129, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "HTTPFS_TEMP path used by HTTPFS", span: Span { start: Position { line: 129, column: 34, }, end: Position { line: 129, column: 65, }, }, }, ), ], span: Span { start: Position { line: 129, column: 33, }, end: Position { line: 129, column: 66, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 126, column: 27, }, end: Position { line: 130, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 125, column: 75, }, end: Position { line: 131, column: 6, }, }, }, ), }, ), }, ), ], span: Span { start: Position { line: 80, column: 34, }, end: Position { line: 133, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 135, column: 3, }, end: Position { line: 135, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkMerge", span: Span { start: Position { line: 135, column: 12, }, end: Position { line: 135, column: 19, }, }, }, ), arguments: [ List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceConfig", span: Span { start: Position { line: 136, column: 6, }, end: Position { line: 136, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 137, column: 7, }, end: Position { line: 137, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "NameNode", span: Span { start: Position { line: 137, column: 15, }, end: Position { line: 137, column: 23, }, }, }, ), ], span: Span { start: Position { line: 137, column: 14, }, end: Position { line: 137, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 138, column: 7, }, end: Position { line: 138, column: 22, }, }, }, ), ], to: List( List { elements: [ Integer( Integer { value: "9870", span: Span { start: Position { line: 139, column: 9, }, end: Position { line: 139, column: 13, }, }, }, ), Integer( Integer { value: "8020", span: Span { start: Position { line: 140, column: 9, }, end: Position { line: 140, column: 13, }, }, }, ), Integer( Integer { value: "8022", span: Span { start: Position { line: 141, column: 9, }, end: Position { line: 141, column: 13, }, }, }, ), Integer( Integer { value: "8019", span: Span { start: Position { line: 142, column: 9, }, end: Position { line: 142, column: 13, }, }, }, ), ], span: Span { start: Position { line: 138, column: 25, }, end: Position { line: 143, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "preStart", span: Span { start: Position { line: 144, column: 7, }, end: Position { line: 144, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 144, column: 19, }, end: Position { line: 144, column: 23, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 144, column: 24, }, end: Position { line: 144, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 144, column: 28, }, end: Position { line: 144, column: 32, }, }, }, ), Raw( PartRaw { content: "namenode", span: Span { start: Position { line: 144, column: 33, }, end: Position { line: 144, column: 41, }, }, }, ), Raw( PartRaw { content: "formatOnInit", span: Span { start: Position { line: 144, column: 42, }, end: Position { line: 144, column: 54, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 145, column: 12, }, end: Position { line: 145, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 145, column: 16, }, end: Position { line: 145, column: 23, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/hdfs --config ", span: Span { start: Position { line: 145, column: 10, }, end: Position { line: 145, column: 43, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "hadoopConf", span: Span { start: Position { line: 145, column: 45, }, end: Position { line: 145, column: 55, }, }, }, ), }, ), Raw( PartRaw { content: " namenode -format -nonInteractive || true", span: Span { start: Position { line: 145, column: 10, }, end: Position { line: 145, column: 97, }, }, }, ), ], span: Span { start: Position { line: 145, column: 9, }, end: Position { line: 145, column: 98, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 136, column: 26, }, end: Position { line: 147, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceConfig", span: Span { start: Position { line: 149, column: 6, }, end: Position { line: 149, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 150, column: 7, }, end: Position { line: 150, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "DataNode", span: Span { start: Position { line: 150, column: 15, }, end: Position { line: 150, column: 23, }, }, }, ), ], span: Span { start: Position { line: 150, column: 14, }, end: Position { line: 150, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 152, column: 7, }, end: Position { line: 152, column: 22, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "versionAtLeast", span: Span { start: Position { line: 152, column: 28, }, end: Position { line: 152, column: 42, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 152, column: 43, }, end: Position { line: 152, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 152, column: 47, }, end: Position { line: 152, column: 54, }, }, }, ), Raw( PartRaw { content: "version", span: Span { start: Position { line: 152, column: 55, }, end: Position { line: 152, column: 62, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "3", span: Span { start: Position { line: 152, column: 64, }, end: Position { line: 152, column: 65, }, }, }, ), ], span: Span { start: Position { line: 152, column: 63, }, end: Position { line: 152, column: 66, }, }, }, ), ], }, ), then: List( List { elements: [ Integer( Integer { value: "9864", span: Span { start: Position { line: 153, column: 9, }, end: Position { line: 153, column: 13, }, }, }, ), Integer( Integer { value: "9866", span: Span { start: Position { line: 154, column: 9, }, end: Position { line: 154, column: 13, }, }, }, ), Integer( Integer { value: "9867", span: Span { start: Position { line: 155, column: 9, }, end: Position { line: 155, column: 13, }, }, }, ), ], span: Span { start: Position { line: 152, column: 72, }, end: Position { line: 156, column: 8, }, }, }, ), else_: List( List { elements: [ Integer( Integer { value: "50075", span: Span { start: Position { line: 157, column: 9, }, end: Position { line: 157, column: 14, }, }, }, ), Integer( Integer { value: "50010", span: Span { start: Position { line: 158, column: 9, }, end: Position { line: 158, column: 14, }, }, }, ), Integer( Integer { value: "50020", span: Span { start: Position { line: 159, column: 9, }, end: Position { line: 159, column: 14, }, }, }, ), ], span: Span { start: Position { line: 156, column: 14, }, end: Position { line: 160, column: 8, }, }, }, ), span: Span { start: Position { line: 152, column: 25, }, end: Position { line: 160, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 161, column: 7, }, end: Position { line: 161, column: 18, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 161, column: 19, }, end: Position { line: 161, column: 27, }, }, }, ), Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 161, column: 28, }, end: Position { line: 161, column: 34, }, }, }, ), Raw( PartRaw { content: "hdfsSiteInternal", span: Span { start: Position { line: 161, column: 35, }, end: Position { line: 161, column: 51, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "dfs.datanode.data.dir", span: Span { start: Position { line: 161, column: 53, }, end: Position { line: 161, column: 74, }, }, }, ), ], span: Span { start: Position { line: 161, column: 52, }, end: Position { line: 161, column: 75, }, }, }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 161, column: 78, }, end: Position { line: 161, column: 82, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 161, column: 84, }, end: Position { line: 161, column: 87, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 161, column: 88, }, end: Position { line: 161, column: 92, }, }, }, ), Raw( PartRaw { content: "datanode", span: Span { start: Position { line: 161, column: 93, }, end: Position { line: 161, column: 101, }, }, }, ), Raw( PartRaw { content: "dataDirs", span: Span { start: Position { line: 161, column: 102, }, end: Position { line: 161, column: 110, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 161, column: 113, }, end: Position { line: 161, column: 117, }, }, }, ), }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 162, column: 10, }, end: Position { line: 162, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ",", span: Span { start: Position { line: 162, column: 31, }, end: Position { line: 162, column: 32, }, }, }, ), ], span: Span { start: Position { line: 162, column: 30, }, end: Position { line: 162, column: 33, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "[", span: Span { start: Position { line: 162, column: 39, }, end: Position { line: 162, column: 40, }, }, }, ), ], span: Span { start: Position { line: 162, column: 38, }, end: Position { line: 162, column: 41, }, }, }, ), operator: Addition, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 162, column: 42, }, end: Position { line: 162, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 162, column: 44, }, end: Position { line: 162, column: 48, }, }, }, ), ], default: None, }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "]file://", span: Span { start: Position { line: 162, column: 50, }, end: Position { line: 162, column: 58, }, }, }, ), ], span: Span { start: Position { line: 162, column: 49, }, end: Position { line: 162, column: 59, }, }, }, ), }, ), operator: Addition, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 162, column: 60, }, end: Position { line: 162, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 162, column: 62, }, end: Position { line: 162, column: 66, }, }, }, ), ], default: None, }, ), }, ), span: Span { start: Position { line: 162, column: 35, }, end: Position { line: 162, column: 66, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 162, column: 68, }, end: Position { line: 162, column: 71, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 162, column: 72, }, end: Position { line: 162, column: 76, }, }, }, ), Raw( PartRaw { content: "datanode", span: Span { start: Position { line: 162, column: 77, }, end: Position { line: 162, column: 85, }, }, }, ), Raw( PartRaw { content: "dataDirs", span: Span { start: Position { line: 162, column: 86, }, end: Position { line: 162, column: 94, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 149, column: 26, }, end: Position { line: 163, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceConfig", span: Span { start: Position { line: 165, column: 6, }, end: Position { line: 165, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 166, column: 7, }, end: Position { line: 166, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "JournalNode", span: Span { start: Position { line: 166, column: 15, }, end: Position { line: 166, column: 26, }, }, }, ), ], span: Span { start: Position { line: 166, column: 14, }, end: Position { line: 166, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 167, column: 7, }, end: Position { line: 167, column: 22, }, }, }, ), ], to: List( List { elements: [ Integer( Integer { value: "8480", span: Span { start: Position { line: 168, column: 9, }, end: Position { line: 168, column: 13, }, }, }, ), Integer( Integer { value: "8485", span: Span { start: Position { line: 169, column: 9, }, end: Position { line: 169, column: 13, }, }, }, ), ], span: Span { start: Position { line: 167, column: 25, }, end: Position { line: 170, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 165, column: 26, }, end: Position { line: 171, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceConfig", span: Span { start: Position { line: 173, column: 6, }, end: Position { line: 173, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 174, column: 7, }, end: Position { line: 174, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "zkfc", span: Span { start: Position { line: 174, column: 15, }, end: Position { line: 174, column: 19, }, }, }, ), ], span: Span { start: Position { line: 174, column: 14, }, end: Position { line: 174, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 175, column: 7, }, end: Position { line: 175, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Hadoop HDFS ZooKeeper failover controller", span: Span { start: Position { line: 175, column: 22, }, end: Position { line: 175, column: 63, }, }, }, ), ], span: Span { start: Position { line: 175, column: 21, }, end: Position { line: 175, column: 64, }, }, }, ), }, ), ], span: Span { start: Position { line: 173, column: 26, }, end: Position { line: 176, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hadoopServiceConfig", span: Span { start: Position { line: 178, column: 6, }, end: Position { line: 178, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 179, column: 7, }, end: Position { line: 179, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HTTPFS", span: Span { start: Position { line: 179, column: 15, }, end: Position { line: 179, column: 21, }, }, }, ), ], span: Span { start: Position { line: 179, column: 14, }, end: Position { line: 179, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 180, column: 7, }, end: Position { line: 180, column: 18, }, }, }, ), Raw( PartRaw { content: "HTTPFS_TEMP", span: Span { start: Position { line: 180, column: 19, }, end: Position { line: 180, column: 30, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 180, column: 33, }, end: Position { line: 180, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 180, column: 37, }, end: Position { line: 180, column: 41, }, }, }, ), Raw( PartRaw { content: "httpfs", span: Span { start: Position { line: 180, column: 42, }, end: Position { line: 180, column: 48, }, }, }, ), Raw( PartRaw { content: "tempPath", span: Span { start: Position { line: 180, column: 49, }, end: Position { line: 180, column: 57, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "preStart", span: Span { start: Position { line: 181, column: 7, }, end: Position { line: 181, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mkdir -p $HTTPFS_TEMP", span: Span { start: Position { line: 181, column: 19, }, end: Position { line: 181, column: 40, }, }, }, ), ], span: Span { start: Position { line: 181, column: 18, }, end: Position { line: 181, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 182, column: 7, }, end: Position { line: 182, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "httpfs", span: Span { start: Position { line: 182, column: 15, }, end: Position { line: 182, column: 21, }, }, }, ), ], span: Span { start: Position { line: 182, column: 14, }, end: Position { line: 182, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 183, column: 7, }, end: Position { line: 183, column: 22, }, }, }, ), ], to: List( List { elements: [ Integer( Integer { value: "14000", span: Span { start: Position { line: 184, column: 9, }, end: Position { line: 184, column: 14, }, }, }, ), ], span: Span { start: Position { line: 183, column: 25, }, end: Position { line: 185, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 178, column: 26, }, end: Position { line: 186, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 188, column: 6, }, end: Position { line: 188, column: 10, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 188, column: 11, }, end: Position { line: 188, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gatewayRole", span: Span { start: Position { line: 188, column: 15, }, end: Position { line: 188, column: 26, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 188, column: 27, }, end: Position { line: 188, column: 33, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 189, column: 7, }, end: Position { line: 189, column: 12, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 189, column: 13, }, end: Position { line: 189, column: 18, }, }, }, ), Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 189, column: 19, }, end: Position { line: 189, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 190, column: 9, }, end: Position { line: 190, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Hadoop HDFS user", span: Span { start: Position { line: 190, column: 24, }, end: Position { line: 190, column: 40, }, }, }, ), ], span: Span { start: Position { line: 190, column: 23, }, end: Position { line: 190, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 191, column: 9, }, end: Position { line: 191, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 191, column: 18, }, end: Position { line: 191, column: 24, }, }, }, ), ], span: Span { start: Position { line: 191, column: 17, }, end: Position { line: 191, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "uid", span: Span { start: Position { line: 192, column: 9, }, end: Position { line: 192, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 192, column: 15, }, end: Position { line: 192, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ids", span: Span { start: Position { line: 192, column: 22, }, end: Position { line: 192, column: 25, }, }, }, ), Raw( PartRaw { content: "uids", span: Span { start: Position { line: 192, column: 26, }, end: Position { line: 192, column: 30, }, }, }, ), Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 192, column: 31, }, end: Position { line: 192, column: 35, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 189, column: 26, }, end: Position { line: 193, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 188, column: 34, }, end: Position { line: 194, column: 6, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 195, column: 6, }, end: Position { line: 195, column: 10, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 195, column: 11, }, end: Position { line: 195, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hdfs", span: Span { start: Position { line: 195, column: 15, }, end: Position { line: 195, column: 19, }, }, }, ), Raw( PartRaw { content: "httpfs", span: Span { start: Position { line: 195, column: 20, }, end: Position { line: 195, column: 26, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 195, column: 27, }, end: Position { line: 195, column: 33, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 196, column: 7, }, end: Position { line: 196, column: 12, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 196, column: 13, }, end: Position { line: 196, column: 18, }, }, }, ), Raw( PartRaw { content: "httpfs", span: Span { start: Position { line: 196, column: 19, }, end: Position { line: 196, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 197, column: 9, }, end: Position { line: 197, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Hadoop HTTPFS user", span: Span { start: Position { line: 197, column: 24, }, end: Position { line: 197, column: 42, }, }, }, ), ], span: Span { start: Position { line: 197, column: 23, }, end: Position { line: 197, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 198, column: 9, }, end: Position { line: 198, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hadoop", span: Span { start: Position { line: 198, column: 18, }, end: Position { line: 198, column: 24, }, }, }, ), ], span: Span { start: Position { line: 198, column: 17, }, end: Position { line: 198, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 199, column: 9, }, end: Position { line: 199, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 199, column: 24, }, end: Position { line: 199, column: 28, }, }, }, ), }, ), ], span: Span { start: Position { line: 196, column: 28, }, end: Position { line: 200, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 195, column: 34, }, end: Position { line: 201, column: 6, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 135, column: 20, }, end: Position { line: 203, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 79, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 204, column: 2, }, }, }, )