<commit_before>#  https://launchpad.net/~virtualbox-ppa/+archive/releases

{% set dist = grains['oscodename'] %}
{% set humanname = "virtualbox-releases-%s" % dist %}

include:
  - virtualbox.host

virtualbox:
  pkgrepo.managed:
    - humanname: {{ humanname }}
    - name: deb http://download.virtualbox.org/virtualbox/debian {{ dist }} contrib
    - comment: ""
    - dist: {{ dist }}
    - file: /etc/apt/sources.list.d/{{ humanname }}.list
    #- keyid: D5056DDE  
    #- keyserver: keyserver.ubuntu.com
    - key_url: salt://virtualbox/files/oracle_vbox.asc
    #- gpgcheck: 1
    #- gpgkey: 
    - require_in:
      - pkg: virtualbox


  pkg.latest:
    - pkgs:
      - linux-headers-{{ grains['kernelrelease'] }}
      - dkms
      - virtualbox-4.3
    - require:
      - pkgrepo: virtualbox
    - require_in:
      - pkg: virtualbox
    #- refresh: True
<commit_msg>BUG,CLN,PERF: append '-deb'; cleanup; pkg.latest -> pkg.installed<commit_after>#  https://launchpad.net/~virtualbox-ppa/+archive/releases

include:
  - virtualbox.host

{% set dist = grains['oscodename'] %}
{% set humanname = "virtualbox-releases-%s" % dist %}
{% set repo_url = "http://download.virtualbox.org/virtualbox/debian" %}

virtualbox-deb:
  pkgrepo.managed:
    - humanname: {{ humanname }}
    - name: deb {{ repo_url }} {{ dist }} non-free contrib
    - comment: ""
    - dist: {{ dist }}
    - file: /etc/apt/sources.list.d/{{ humanname }}.list
    #- keyid:
    #- keyserver:
    - key_url: salt://virtualbox/files/oracle_vbox.asc
    #- gpgcheck: 1
    #- gpgkey: 
    - require_in:
      - pkg: virtualbox


  pkg.installed:
    - pkgs:
      - linux-headers-{{ grains['kernelrelease'] }}
      - dkms
      - virtualbox-4.3
    - require:
      - pkgrepo: virtualbox-deb
    - require_in:
      - pkg: virtualbox

{'fraction_non_alphanumeric': 0.16454293628808864, 'fraction_numerical': 0.00554016620498615, 'mean_word_length': 2.4269449715370017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '5251703', 'n_tokens_mistral': 701, 'n_tokens_neox': 629, 'n_words': 111}