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: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 10, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 9, column: 13, }, end: Position { line: 9, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 9, column: 17, }, end: Position { line: 9, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mongoCnf", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "cfg", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 11, column: 19, }, end: Position { line: 11, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 11, column: 24, }, end: Position { line: 11, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "mongodb.conf", span: Span { start: Position { line: 11, column: 35, }, end: Position { line: 11, column: 47, }, }, }, ), ], span: Span { start: Position { line: 11, column: 34, }, end: Position { line: 11, column: 48, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "net.bindIp: ", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 13, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 13, column: 19, }, end: Position { line: 13, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bind_ip", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 30, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 14, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 21, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 14, column: 22, }, end: Position { line: 14, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "quiet", span: Span { start: Position { line: 14, column: 26, }, end: Position { line: 14, column: 31, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "systemLog.quiet: true", span: Span { start: Position { line: 14, column: 33, }, end: Position { line: 14, column: 54, }, }, }, ), ], span: Span { start: Position { line: 14, column: 32, }, end: Position { line: 14, column: 55, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nsystemLog.destination: syslog\nstorage.dbPath: ", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 16, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 16, column: 23, }, end: Position { line: 16, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 16, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 17, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 21, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 17, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enableAuth", span: Span { start: Position { line: 17, column: 26, }, end: Position { line: 17, column: 36, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "security.authorization: enabled", span: Span { start: Position { line: 17, column: 38, }, end: Position { line: 17, column: 69, }, }, }, ), ], span: Span { start: Position { line: 17, column: 37, }, end: Position { line: 17, column: 70, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 18, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 21, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 18, column: 23, }, end: Position { line: 18, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "replSetName", span: Span { start: Position { line: 18, column: 27, }, end: Position { line: 18, column: 38, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 18, column: 42, }, end: Position { line: 18, column: 44, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "replication.replSetName: ", span: Span { start: Position { line: 18, column: 47, }, end: Position { line: 18, column: 90, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 18, column: 74, }, end: Position { line: 18, column: 77, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "replSetName", span: Span { start: Position { line: 18, column: 78, }, end: Position { line: 18, column: 89, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 18, column: 46, }, end: Position { line: 18, column: 91, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 19, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 19, column: 11, }, end: Position { line: 19, column: 22, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 20, column: 3, }, }, }, ), ], span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 20, column: 5, }, }, }, ), ], }, ), span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 20, column: 5, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 28, column: 3, }, end: Position { line: 28, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 13, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 30, column: 14, }, end: Position { line: 30, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 32, column: 16, }, end: Position { line: 32, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 32, }, end: Position { line: 32, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 36, }, end: Position { line: 32, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "the MongoDB server", span: Span { start: Position { line: 32, column: 43, }, end: Position { line: 32, column: 61, }, }, }, ), ], span: Span { start: Position { line: 32, column: 42, }, end: Position { line: 32, column: 62, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 34, column: 17, }, end: Position { line: 34, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 35, column: 24, }, end: Position { line: 35, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.mongodb", span: Span { start: Position { line: 36, column: 42, }, end: Position { line: 36, column: 54, }, }, }, ), ], span: Span { start: Position { line: 36, column: 41, }, end: Position { line: 36, column: 55, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 37, column: 22, }, end: Position { line: 37, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 38, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 38, column: 27, }, end: Position { line: 38, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Which MongoDB derivation to use.\n", span: Span { start: Position { line: 39, column: 1, }, end: Position { line: 40, column: 9, }, }, }, ), ], span: Span { start: Position { line: 38, column: 33, }, end: Position { line: 40, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 34, column: 26, }, end: Position { line: 41, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 43, column: 14, }, end: Position { line: 43, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 44, column: 16, }, end: Position { line: 44, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 44, column: 22, }, end: Position { line: 44, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 45, column: 20, }, end: Position { line: 45, column: 27, }, }, }, ), ], span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 46, column: 23, }, end: Position { line: 46, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 46, column: 27, }, end: Position { line: 46, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "User account under which MongoDB runs", span: Span { start: Position { line: 46, column: 34, }, end: Position { line: 46, column: 71, }, }, }, ), ], span: Span { start: Position { line: 46, column: 33, }, end: Position { line: 46, column: 72, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 43, column: 23, }, end: Position { line: 47, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bind_ip", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 50, column: 16, }, end: Position { line: 50, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "127.0.0.1", span: Span { start: Position { line: 51, column: 20, }, end: Position { line: 51, column: 29, }, }, }, ), ], span: Span { start: Position { line: 51, column: 19, }, end: Position { line: 51, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 52, column: 23, }, end: Position { line: 52, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 52, column: 27, }, end: Position { line: 52, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "IP to bind to", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 47, }, }, }, ), ], span: Span { start: Position { line: 52, column: 33, }, end: Position { line: 52, column: 48, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 49, column: 26, }, end: Position { line: 53, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "quiet", span: Span { start: Position { line: 55, column: 7, }, end: Position { line: 55, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 55, column: 15, }, end: Position { line: 55, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 56, column: 16, }, end: Position { line: 56, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 56, column: 22, }, end: Position { line: 56, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 57, column: 19, }, end: Position { line: 57, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 58, column: 9, }, end: Position { line: 58, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 58, column: 23, }, end: Position { line: 58, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 58, column: 27, }, end: Position { line: 58, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "quieter output", span: Span { start: Position { line: 58, column: 34, }, end: Position { line: 58, column: 48, }, }, }, ), ], span: Span { start: Position { line: 58, column: 33, }, end: Position { line: 58, column: 49, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 55, column: 24, }, end: Position { line: 59, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enableAuth", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 61, column: 20, }, end: Position { line: 61, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 62, column: 9, }, end: Position { line: 62, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 62, column: 16, }, end: Position { line: 62, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 62, column: 22, }, end: Position { line: 62, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 63, column: 19, }, end: Position { line: 63, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 64, column: 23, }, end: Position { line: 64, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 64, column: 27, }, end: Position { line: 64, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Enable client authentication. Creates a default superuser with username root!", span: Span { start: Position { line: 64, column: 34, }, end: Position { line: 64, column: 111, }, }, }, ), ], span: Span { start: Position { line: 64, column: 33, }, end: Position { line: 64, column: 112, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 61, column: 29, }, end: Position { line: 65, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "initialRootPassword", span: Span { start: Position { line: 67, column: 7, }, end: Position { line: 67, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 67, column: 29, }, end: Position { line: 67, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 68, column: 9, }, end: Position { line: 68, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 68, column: 16, }, end: Position { line: 68, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 68, column: 22, }, end: Position { line: 68, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 68, column: 29, }, end: Position { line: 68, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 68, column: 35, }, end: Position { line: 68, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 69, column: 9, }, end: Position { line: 69, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 69, column: 19, }, end: Position { line: 69, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 70, column: 23, }, end: Position { line: 70, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 70, column: 27, }, end: Position { line: 70, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Password for the root user if auth is enabled.", span: Span { start: Position { line: 70, column: 34, }, end: Position { line: 70, column: 80, }, }, }, ), ], span: Span { start: Position { line: 70, column: 33, }, end: Position { line: 70, column: 81, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 67, column: 38, }, end: Position { line: 71, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 73, column: 7, }, end: Position { line: 73, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 73, column: 16, }, end: Position { line: 73, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 74, column: 9, }, end: Position { line: 74, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 74, column: 16, }, end: Position { line: 74, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 74, column: 22, }, end: Position { line: 74, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/db/mongodb", span: Span { start: Position { line: 75, column: 20, }, end: Position { line: 75, column: 35, }, }, }, ), ], span: Span { start: Position { line: 75, column: 19, }, end: Position { line: 75, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 76, column: 9, }, end: Position { line: 76, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 76, column: 23, }, end: Position { line: 76, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 76, column: 27, }, end: Position { line: 76, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Location where MongoDB stores its files", span: Span { start: Position { line: 76, column: 34, }, end: Position { line: 76, column: 73, }, }, }, ), ], span: Span { start: Position { line: 76, column: 33, }, end: Position { line: 76, column: 74, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 73, column: 25, }, end: Position { line: 77, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pidFile", span: Span { start: Position { line: 79, column: 7, }, end: Position { line: 79, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 79, column: 17, }, end: Position { line: 79, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 80, column: 16, }, end: Position { line: 80, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 80, column: 22, }, end: Position { line: 80, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/mongodb.pid", span: Span { start: Position { line: 81, column: 20, }, end: Position { line: 81, column: 36, }, }, }, ), ], span: Span { start: Position { line: 81, column: 19, }, end: Position { line: 81, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 82, column: 23, }, end: Position { line: 82, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 82, column: 27, }, end: Position { line: 82, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Location of MongoDB pid file", span: Span { start: Position { line: 82, column: 34, }, end: Position { line: 82, column: 62, }, }, }, ), ], span: Span { start: Position { line: 82, column: 33, }, end: Position { line: 82, column: 63, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 79, column: 26, }, end: Position { line: 83, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "replSetName", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 85, column: 21, }, end: Position { line: 85, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 86, column: 16, }, end: Position { line: 86, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 86, column: 22, }, end: Position { line: 86, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 87, column: 9, }, end: Position { line: 87, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 87, column: 19, }, end: Position { line: 87, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 88, column: 9, }, end: Position { line: 88, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 88, column: 23, }, end: Position { line: 88, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 88, column: 27, }, end: Position { line: 88, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If this instance is part of a replica set, set its name here.\nOtherwise, leave empty to run as single node.\n", span: Span { start: Position { line: 89, column: 1, }, end: Position { line: 91, column: 9, }, }, }, ), ], span: Span { start: Position { line: 88, column: 33, }, end: Position { line: 91, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 85, column: 30, }, end: Position { line: 92, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 94, column: 7, }, end: Position { line: 94, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 94, column: 21, }, end: Position { line: 94, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 95, column: 9, }, end: Position { line: 95, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 95, column: 16, }, end: Position { line: 95, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 95, column: 22, }, end: Position { line: 95, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 96, column: 9, }, end: Position { line: 96, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 96, column: 19, }, end: Position { line: 96, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 97, column: 9, }, end: Position { line: 97, column: 16, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "storage.journal.enabled: false\n", span: Span { start: Position { line: 98, column: 1, }, end: Position { line: 99, column: 9, }, }, }, ), ], span: Span { start: Position { line: 97, column: 19, }, end: Position { line: 99, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 100, column: 23, }, end: Position { line: 100, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 100, column: 27, }, end: Position { line: 100, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "MongoDB extra configuration in YAML format", span: Span { start: Position { line: 100, column: 34, }, end: Position { line: 100, column: 76, }, }, }, ), ], span: Span { start: Position { line: 100, column: 33, }, end: Position { line: 100, column: 77, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 94, column: 30, }, end: Position { line: 101, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "initialScript", span: Span { start: Position { line: 103, column: 7, }, end: Position { line: 103, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 103, column: 23, }, end: Position { line: 103, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 104, column: 9, }, end: Position { line: 104, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 104, column: 16, }, end: Position { line: 104, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 104, column: 22, }, end: Position { line: 104, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 104, column: 29, }, end: Position { line: 104, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 104, column: 35, }, end: Position { line: 104, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 105, column: 9, }, end: Position { line: 105, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 105, column: 19, }, end: Position { line: 105, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 106, column: 9, }, end: Position { line: 106, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 106, column: 23, }, end: Position { line: 106, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 106, column: 27, }, end: Position { line: 106, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A file containing MongoDB statements to execute on first startup.\n", span: Span { start: Position { line: 107, column: 1, }, end: Position { line: 108, column: 9, }, }, }, ), ], span: Span { start: Position { line: 106, column: 33, }, end: Position { line: 108, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 103, column: 32, }, end: Position { line: 109, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 24, }, end: Position { line: 110, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 28, column: 13, }, end: Position { line: 112, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 117, column: 3, }, end: Position { line: 117, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 117, column: 12, }, end: Position { line: 117, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 117, column: 17, }, end: Position { line: 117, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 117, column: 24, }, end: Position { line: 117, column: 32, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 117, column: 33, }, end: Position { line: 117, column: 40, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 117, column: 41, }, end: Position { line: 117, column: 47, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 118, column: 5, }, end: Position { line: 118, column: 15, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 119, column: 9, }, end: Position { line: 119, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 119, column: 22, }, end: Position { line: 119, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enableAuth", span: Span { start: Position { line: 119, column: 26, }, end: Position { line: 119, column: 36, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 119, column: 21, }, end: Position { line: 119, column: 36, }, }, }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 119, column: 40, }, end: Position { line: 119, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "initialRootPassword", span: Span { start: Position { line: 119, column: 44, }, end: Position { line: 119, column: 63, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 119, column: 67, }, end: Position { line: 119, column: 71, }, }, }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 120, column: 9, }, end: Position { line: 120, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "`enableAuth` requires `initialRootPassword` to be set.", span: Span { start: Position { line: 120, column: 20, }, end: Position { line: 120, column: 74, }, }, }, ), ], span: Span { start: Position { line: 120, column: 19, }, end: Position { line: 120, column: 75, }, }, }, ), }, ), ], span: Span { start: Position { line: 119, column: 7, }, end: Position { line: 121, column: 8, }, }, }, ), ], span: Span { start: Position { line: 118, column: 18, }, end: Position { line: 122, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 124, column: 5, }, end: Position { line: 124, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 124, column: 11, }, end: Position { line: 124, column: 16, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 124, column: 17, }, end: Position { line: 124, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 124, column: 27, }, end: Position { line: 124, column: 31, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 124, column: 33, }, end: Position { line: 124, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 124, column: 37, }, end: Position { line: 124, column: 41, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 124, column: 46, }, end: Position { line: 124, column: 53, }, }, }, ), ], span: Span { start: Position { line: 124, column: 45, }, end: Position { line: 124, column: 54, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 125, column: 9, }, end: Position { line: 125, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 125, column: 17, }, end: Position { line: 125, column: 24, }, }, }, ), ], span: Span { start: Position { line: 125, column: 16, }, end: Position { line: 125, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 126, column: 9, }, end: Position { line: 126, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 126, column: 24, }, end: Position { line: 126, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 127, column: 9, }, end: Position { line: 127, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 127, column: 18, }, end: Position { line: 127, column: 25, }, }, }, ), ], span: Span { start: Position { line: 127, column: 17, }, end: Position { line: 127, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 128, column: 9, }, end: Position { line: 128, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "MongoDB server user", span: Span { start: Position { line: 128, column: 24, }, end: Position { line: 128, column: 43, }, }, }, ), ], span: Span { start: Position { line: 128, column: 23, }, end: Position { line: 128, column: 44, }, }, }, ), }, ), ], span: Span { start: Position { line: 125, column: 7, }, end: Position { line: 129, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 130, column: 5, }, end: Position { line: 130, column: 10, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 130, column: 11, }, end: Position { line: 130, column: 17, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 130, column: 18, }, end: Position { line: 130, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 130, column: 28, }, end: Position { line: 130, column: 32, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 130, column: 34, }, end: Position { line: 130, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 130, column: 38, }, end: Position { line: 130, column: 42, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 130, column: 47, }, end: Position { line: 130, column: 54, }, }, }, ), ], span: Span { start: Position { line: 130, column: 46, }, end: Position { line: 130, column: 55, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 130, column: 57, }, end: Position { line: 130, column: 59, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 132, column: 5, }, end: Position { line: 132, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 132, column: 17, }, end: Position { line: 132, column: 31, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "mongodb", span: Span { start: Position { line: 132, column: 36, }, end: Position { line: 132, column: 43, }, }, }, ), ], span: Span { start: Position { line: 132, column: 34, }, end: Position { line: 132, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 134, column: 5, }, end: Position { line: 134, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 134, column: 13, }, end: Position { line: 134, column: 21, }, }, }, ), Raw( PartRaw { content: "mongodb", span: Span { start: Position { line: 134, column: 22, }, end: Position { line: 134, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 135, column: 9, }, end: Position { line: 135, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "MongoDB server", span: Span { start: Position { line: 135, column: 24, }, end: Position { line: 135, column: 38, }, }, }, ), ], span: Span { start: Position { line: 135, column: 23, }, end: Position { line: 135, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 137, column: 9, }, end: Position { line: 137, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 137, column: 23, }, end: Position { line: 137, column: 40, }, }, }, ), ], span: Span { start: Position { line: 137, column: 22, }, end: Position { line: 137, column: 41, }, }, }, ), ], span: Span { start: Position { line: 137, column: 20, }, end: Position { line: 137, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 138, column: 9, }, end: Position { line: 138, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 138, column: 20, }, end: Position { line: 138, column: 34, }, }, }, ), ], span: Span { start: Position { line: 138, column: 19, }, end: Position { line: 138, column: 35, }, }, }, ), ], span: Span { start: Position { line: 138, column: 17, }, end: Position { line: 138, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 140, column: 9, }, end: Position { line: 140, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 141, column: 11, }, end: Position { line: 141, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mongodb", span: Span { start: Position { line: 141, column: 26, }, end: Position { line: 141, column: 33, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/mongod --config ", span: Span { start: Position { line: 141, column: 24, }, end: Position { line: 141, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mongoCnf", span: Span { start: Position { line: 141, column: 57, }, end: Position { line: 141, column: 65, }, }, }, ), arguments: [ Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 141, column: 66, }, end: Position { line: 141, column: 69, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " --fork --pidfilepath ", span: Span { start: Position { line: 141, column: 24, }, end: Position { line: 141, column: 92, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 141, column: 94, }, end: Position { line: 141, column: 97, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pidFile", span: Span { start: Position { line: 141, column: 98, }, end: Position { line: 141, column: 105, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 141, column: 23, }, end: Position { line: 141, column: 107, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 142, column: 11, }, end: Position { line: 142, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 142, column: 18, }, end: Position { line: 142, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 142, column: 22, }, end: Position { line: 142, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PIDFile", span: Span { start: Position { line: 143, column: 11, }, end: Position { line: 143, column: 18, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 143, column: 21, }, end: Position { line: 143, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pidFile", span: Span { start: Position { line: 143, column: 25, }, end: Position { line: 143, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 144, column: 11, }, end: Position { line: 144, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "forking", span: Span { start: Position { line: 144, column: 19, }, end: Position { line: 144, column: 26, }, }, }, ), ], span: Span { start: Position { line: 144, column: 18, }, end: Position { line: 144, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "TimeoutStartSec", span: Span { start: Position { line: 145, column: 11, }, end: Position { line: 145, column: 26, }, }, }, ), ], to: Integer( Integer { value: "120", span: Span { start: Position { line: 145, column: 27, }, end: Position { line: 145, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PermissionsStartOnly", span: Span { start: Position { line: 146, column: 11, }, end: Position { line: 146, column: 31, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 146, column: 34, }, end: Position { line: 146, column: 38, }, }, }, ), }, ), ], span: Span { start: Position { line: 140, column: 25, }, end: Position { line: 147, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "preStart", span: Span { start: Position { line: 149, column: 9, }, end: Position { line: 149, column: 17, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg_", span: Span { start: Position { line: 150, column: 11, }, end: Position { line: 150, column: 15, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 150, column: 18, }, end: Position { line: 150, column: 21, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enableAuth", span: Span { start: Position { line: 150, column: 27, }, end: Position { line: 150, column: 37, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 150, column: 40, }, end: Position { line: 150, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bind_ip", span: Span { start: Position { line: 150, column: 47, }, end: Position { line: 150, column: 54, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "127.0.0.1", span: Span { start: Position { line: 150, column: 58, }, end: Position { line: 150, column: 67, }, }, }, ), ], span: Span { start: Position { line: 150, column: 57, }, end: Position { line: 150, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 150, column: 25, }, end: Position { line: 150, column: 71, }, }, }, ), }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: " rm ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 152, column: 14, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 152, column: 16, }, end: Position { line: 152, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 152, column: 20, }, end: Position { line: 152, column: 26, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/mongod.lock || true\nif ! test -e ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 153, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 153, column: 26, }, end: Position { line: 153, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 153, column: 30, }, end: Position { line: 153, column: 36, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "; then\n install -d -m0700 -o ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 154, column: 36, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 154, column: 38, }, end: Position { line: 154, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 154, column: 42, }, end: Position { line: 154, column: 46, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 154, column: 48, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 154, column: 50, }, end: Position { line: 154, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 154, column: 54, }, end: Position { line: 154, column: 60, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n # See postStart!\n touch ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 156, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 156, column: 23, }, end: Position { line: 156, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 156, column: 27, }, end: Position { line: 156, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/.first_startup\nfi\nif ! test -e ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 158, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 158, column: 26, }, end: Position { line: 158, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pidFile", span: Span { start: Position { line: 158, column: 30, }, end: Position { line: 158, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "; then\n install -D -o ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 159, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 159, column: 31, }, end: Position { line: 159, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 159, column: 35, }, end: Position { line: 159, column: 39, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " /dev/null ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 159, column: 51, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 159, column: 53, }, end: Position { line: 159, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pidFile", span: Span { start: Position { line: 159, column: 57, }, end: Position { line: 159, column: 64, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\nfi ", span: Span { start: Position { line: 152, column: 1, }, end: Position { line: 160, column: 14, }, }, }, ), ], span: Span { start: Position { line: 151, column: 12, }, end: Position { line: 160, column: 16, }, }, }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 160, column: 19, }, end: Position { line: 160, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optionalString", span: Span { start: Position { line: 160, column: 23, }, end: Position { line: 160, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 160, column: 38, }, end: Position { line: 160, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enableAuth", span: Span { start: Position { line: 160, column: 42, }, end: Position { line: 160, column: 52, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "\nif ! test -e \"", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 162, column: 25, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 162, column: 27, }, end: Position { line: 162, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dbpath", span: Span { start: Position { line: 162, column: 31, }, end: Position { line: 162, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/.auth_setup_complete\"; then\n systemd-run --unit=mongodb-for-setup --uid=", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 163, column: 56, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 163, column: 58, }, end: Position { line: 163, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 163, column: 62, }, end: Position { line: 163, column: 66, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 163, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mongodb", span: Span { start: Position { line: 163, column: 70, }, end: Position { line: 163, column: 77, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/mongod --config ", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 163, column: 99, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mongoCnf", span: Span { start: Position { line: 163, column: 101, }, end: Position { line: 163, column: 109, }, }, }, ), arguments: [ Identifier( Identifier { id: "cfg_", span: Span { start: Position { line: 163, column: 110, }, end: Position { line: 163, column: 114, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n # wait for mongodb\n while ! ", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 165, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mongodb", span: Span { start: Position { line: 165, column: 23, }, end: Position { line: 165, column: 30, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/mongo --eval \"db.version()\" > /dev/null 2>&1; do sleep 0.1; done\n\n", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 167, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mongodb", span: Span { start: Position { line: 167, column: 13, }, end: Position { line: 167, column: 20, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/mongo <