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