<commit_before>---
systemd:
  units:
    - name: fetch-metadata.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target
        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=METADATA=/etc/metadata.env
        # If the file already exist put the unit on failure
        ExecStartPre=/usr/bin/test ! -f $METADATA
        ExecStart=/usr/bin/curl ${BOOTCFG_URI}/metadata?${REQUEST_RAW_QUERY} -o $METADATA
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: install-rkt.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target
        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=OPT_RKT=/opt/rkt
        Environment=DOWNLOAD_RKT_DIR=/tmp/rkt_install
        Environment=FULL_PATH_RKT=/opt/bin/rkt
        Environment=FULL_PATH_DIR_RKT=/opt/bin
        Environment=RKT_ARCHIVE=rkt.tar.gz
        ExecStart=/opt/bin/install-rkt
        ExecReload=-/bin/rm -Rfv $RKT $OPT_RKT $DOWNLOAD_RKT_DIR
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: install-cni.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target

        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=OPT_CNI=/opt/cni/bin
        Environment=FULL_PATH_DIR_CNI=/opt/bin
        Environment=FULL_PATH_CNI=/opt/bin/cnitool
        Environment=CNI_ARCHIVE=cni.tar.gz
        ExecStart=/opt/bin/install-cni
        ExecReload=-/bin/rm -v /opt/bin/cnitool $OPT_CNI
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: installs.target
      contents: |
        [Unit]
        Requires=install-cni.service
        After=install-cni.service
        Requires=install-rkt.service
        After=install-rkt.service

    - name: rkt-api.service
      enable: true
      contents: |
        [Unit]
        After=install-rkt.service
        Requires=install-rkt.service

        [Service]
        ExecStart=/opt/bin/rkt api-service
        Restart=always
        RestartSec=10

        [Install]
        RequiredBy=multi-user.target

    - name: etcd2.service<commit_msg>Can reload the release<commit_after>---
systemd:
  units:
    - name: fetch-metadata.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target
        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=METADATA=/etc/metadata.env
        # If the file already exist put the unit on failure
        ExecStartPre=/usr/bin/test ! -f $METADATA
        ExecStart=/usr/bin/curl ${BOOTCFG_URI}/metadata?${REQUEST_RAW_QUERY} -o $METADATA
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: install-rkt.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target
        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=OPT_RKT=/opt/rkt
        Environment=DOWNLOAD_RKT_DIR=/tmp/rkt_install
        Environment=FULL_PATH_RKT=/opt/bin/rkt
        Environment=FULL_PATH_DIR_RKT=/opt/bin
        Environment=RKT_ARCHIVE=rkt.tar.gz
        ExecStart=/opt/bin/install-rkt
        ExecReload=-/bin/rm -Rfv $RKT $OPT_RKT $DOWNLOAD_RKT_DIR $FULL_PATH_RKT
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: install-cni.service
      enable: true
      contents: |
        [Unit]
        Requires=network-online.target
        After=network-online.target

        [Service]
        Type=oneshot
        EnvironmentFile=/etc/metadata-endpoints.env
        Environment=OPT_CNI=/opt/cni/bin
        Environment=FULL_PATH_DIR_CNI=/opt/bin
        Environment=FULL_PATH_CNI=/opt/bin/cnitool
        Environment=CNI_ARCHIVE=cni.tar.gz
        ExecStart=/opt/bin/install-cni
        ExecReload=-/bin/rm -Rfv $FULL_PATH_CNI $OPT_CNI
        RemainAfterExit=yes
        [Install]
        WantedBy=multi-user.target

    - name: installs.target
      contents: |
        [Unit]
        Requires=install-cni.service
        After=install-cni.service
        Requires=install-rkt.service
        After=install-rkt.service

    - name: rkt-api.service
      enable: true
      contents: |
        [Unit]
        After=install-rkt.service
        Requires=install-rkt.service

        [Service]
        ExecStart=/opt/bin/rkt api-service
        Restart=always
        RestartSec=10

        [Install]
        RequiredBy=multi-user.target

    - name: etcd2.service
{'fraction_non_alphanumeric': 0.09687246141348498, 'fraction_numerical': 0.0012185215272136475, 'mean_word_length': 2.1092171717171717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3144470', 'n_tokens_mistral': 1630, 'n_tokens_neox': 1534, 'n_words': 219}