<commit_before># vim: sts=2 ts=2 sw=2 et ai
#
{% from "gitlab/map.jinja" import gitlab with context %}

gitlab-install_pkg:
  pkg.installed:
    - sources:
      - gitlab-runner: {{gitlab.runner.downloadpath}} 

gitlab-create_group:
  group.present:
    - name: "gitlab-runner"
    - system: True
    - require:
      - pkg: gitlab-install_pkg

gitlab-install_runserver_create_user:
  user.present:
    - name: {{gitlab.runner.username}}
    - shell: /bin/false
    - home: /home/{{gitlab.runner.username}}
    - groups:
      - gitlab-runner 
    - require:
      - group: gitlab-create_group 

gitlab-install_runserver3:
  cmd.run:
    - name: "export CI_SERVER_URL='{{gitlab.runner.url}}'; export REGISTRATION_TOKEN='{{gitlab.runner.token}}'; /opt/gitlab-runner/bin/setup -C /home/{{gitlab.runner.username}};"
    - unless: 'test -e /home/{{gitlab.runner.username}}/config.yml'
    - require:
      - user: gitlab-install_runserver_create_user

gitlab-create_init_file:
  file.symlink:
    - name: "/etc/init/gitlab-runner.conf"
    - target: "/opt/gitlab-runner/doc/install/upstart/gitlab-runner.conf"
    - user: "root" 
    - group: "root" 
    - mode: 775 
    - unless: 'test -e /etc/init/gitlab-runner.conf'
    - require:
      - cmd: gitlab-install_runserver3

gitlab-runner:
  service.running:
    - enable: True<commit_msg>runner: replace symlink with cp for upstart<commit_after># vim: sts=2 ts=2 sw=2 et ai
#
{% from "gitlab/map.jinja" import gitlab with context %}

gitlab-install_pkg:
  pkg.installed:
    - sources:
      - gitlab-runner: {{gitlab.runner.downloadpath}} 

gitlab-create_group:
  group.present:
    - name: "gitlab-runner"
    - system: True
    - require:
      - pkg: gitlab-install_pkg

gitlab-install_runserver_create_user:
  user.present:
    - name: {{gitlab.runner.username}}
    - shell: /bin/false
    - home: /home/{{gitlab.runner.username}}
    - groups:
      - gitlab-runner 
    - require:
      - group: gitlab-create_group 

gitlab-install_runserver3:
  cmd.run:
    - name: "export CI_SERVER_URL='{{gitlab.runner.url}}'; export REGISTRATION_TOKEN='{{gitlab.runner.token}}'; /opt/gitlab-runner/bin/setup -C /home/{{gitlab.runner.username}};"
    - unless: 'test -e /home/{{gitlab.runner.username}}/config.yml'
    - require:
      - user: gitlab-install_runserver_create_user

gitlab-create_init_file:
  file.copy:
    - name: "/etc/init/gitlab-runner.conf"
    - source: "/opt/gitlab-runner/doc/install/upstart/gitlab-runner.conf"
    - user: "root" 
    - group: "root" 
    - mode: 775 
    - unless: 'test -e /etc/init/gitlab-runner.conf'
    - require:
      - cmd: gitlab-install_runserver3

gitlab-runner:
  service.running:
    - enable: True
{'fraction_non_alphanumeric': 0.15079659133012227, 'fraction_numerical': 0.005928121526491293, 'mean_word_length': 2.8626609442060085, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '760245', 'n_tokens_mistral': 1011, 'n_tokens_neox': 979, 'n_words': 165}