<commit_before>{% if grains['for_testsuite_only'] %}

include:
  - suse_manager_server
  - suse_manager_server.repos

testsuite_authorized_key:
  file.append:
    - name: /root/.ssh/authorized_keys
    - source: salt://controller/id_rsa.pub
    - makedirs: True

anaconda_package_file:
  file.managed:
    - name: /root/anaconda-18.37.11-1.fc18.x86_64.rpm
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/18/Everything/x86_64/os/Packages/a/anaconda-18.37.11-1.fc18.x86_64.rpm
    - source_hash: sha1=faba3de399515f76422a2b0d693273c285b4baa7

fedora_autoinstallation_initrd_file:
  file.managed:
    - name: /install/Fedora_12_i386/images/pxeboot/initrd.img
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/i386/os/images/pxeboot/initrd.img
    - source_hash: sha1=ce78f88281640fbb9ce93435cbc21e8de0d9862d
    - makedirs: True

fedora_autoinstallation_vmlinuz_file:
  file.managed:
    - name: /install/Fedora_12_i386/images/pxeboot/vmlinuz
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/i386/os/images/pxeboot/vmlinuz
    - source_hash: sha1=147c8c50d83639dd8523ada478621b456f1fb23e
    - makedirs: True

sles_autoinstallation_initrd_file:
  file.managed:
    - name: /install/SLES11-SP1-x86_64/DVD1/boot/x86_64/loader/initrd
    - source: http://schnell.nue.suse.com/SLE11/SLES-11-SP1-GM/x86_64/DVD1/boot/x86_64/loader/initrd
    - source_hash: sha1=965da7bb9a6b21d4f0273ac288a3016a2671bb51
    - makedirs: True

sles_autoinstallation_linux_file:
  file.managed:
    - name: /install/SLES11-SP1-x86_64/DVD1/boot/x86_64/loader/linux
    - source: http://schnell.nue.suse.com/SLE11/SLES-11-SP1-GM/x86_64/DVD1/boot/x86_64/loader/linux
    - source_hash: sha1=f18abd366f40c12971b54ac787eb9737012badab
    - makedirs: True

test_package_without_vendor_file:
  file.managed:
    - name: /root/subscription-tools-1.0-0.noarch.rpm
    - source: salt://suse_manager_server/testsuite/subscription-tools-1.0-0.noarch.rpm

test_autoinstallation_file:
  file.managed:
    - name: /install/empty.xml
    - source: salt://suse_manager_server/testsuite/empty.xml
    - makedirs: True

test_vcenter_file:
  file.managed:
    - name: /var/tmp/vCenter.json
    - source: salt://suse_manager_server/testsuite/vCenter.json

lftp:
  pkg.installed:
    - require:
      - sls: suse_manager_server.repos

test_repo:
  cmd.run:
    - name: lftp -c "open http://download.suse.de; mirror -x repocache ibs/Devel:/Galaxy:/TestsuiteRepo/SLE_12_SP1 /srv/www/htdocs/pub/TestRepo"
    - require:
      - pkg: lftp

another_test_repo:
  file.symlink:
    - name: /srv/www/htdocs/pub/AnotherRepo
    - target: TestRepo
    - require:
      - cmd: test_repo

# modify cobbler to be executed from remote-machines..

cobbler_configuration:
    service:
    - name : cobblerd.service
    - running
    - enable: True
    - watch :
      - file : /etc/cobbler/settings
    - require:
      - sls: suse_manager_server
    file.replace:
    - name: /etc/cobbler/settings
    - pattern: "redhat_management_permissive: 0"
    - repl: "redhat_management_permissive: 1"
    - require:
      - sls: suse_manager_server

expect:
  pkg.installed

aaa_base-extras:
  pkg.installed

enable_salt_content_staging_window:
  file.replace:
    - name: /usr/share/rhn/config-defaults/rhn_java.conf
    - pattern: 'salt_content_staging_window = (.*)'
    - repl: 'salt_content_staging_window = 0.05'
    - require:
      - pkg: suse_manager_packages

enable_salt_content_staging_advance:
  file.replace:
    - name: /usr/share/rhn/config-defaults/rhn_java.conf
    - pattern: 'salt_content_staging_advance = (.*)'
    - repl: 'salt_content_staging_advance = 0.1'
    - require:
      - pkg: suse_manager_packages

tomcat:<commit_msg>Installing salt-ssh cli on testsuite suma server<commit_after>{% if grains['for_testsuite_only'] %}

include:
  - suse_manager_server
  - suse_manager_server.repos

testsuite_authorized_key:
  file.append:
    - name: /root/.ssh/authorized_keys
    - source: salt://controller/id_rsa.pub
    - makedirs: True

anaconda_package_file:
  file.managed:
    - name: /root/anaconda-18.37.11-1.fc18.x86_64.rpm
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/18/Everything/x86_64/os/Packages/a/anaconda-18.37.11-1.fc18.x86_64.rpm
    - source_hash: sha1=faba3de399515f76422a2b0d693273c285b4baa7

fedora_autoinstallation_initrd_file:
  file.managed:
    - name: /install/Fedora_12_i386/images/pxeboot/initrd.img
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/i386/os/images/pxeboot/initrd.img
    - source_hash: sha1=ce78f88281640fbb9ce93435cbc21e8de0d9862d
    - makedirs: True

fedora_autoinstallation_vmlinuz_file:
  file.managed:
    - name: /install/Fedora_12_i386/images/pxeboot/vmlinuz
    - source: http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/i386/os/images/pxeboot/vmlinuz
    - source_hash: sha1=147c8c50d83639dd8523ada478621b456f1fb23e
    - makedirs: True

sles_autoinstallation_initrd_file:
  file.managed:
    - name: /install/SLES11-SP1-x86_64/DVD1/boot/x86_64/loader/initrd
    - source: http://schnell.nue.suse.com/SLE11/SLES-11-SP1-GM/x86_64/DVD1/boot/x86_64/loader/initrd
    - source_hash: sha1=965da7bb9a6b21d4f0273ac288a3016a2671bb51
    - makedirs: True

sles_autoinstallation_linux_file:
  file.managed:
    - name: /install/SLES11-SP1-x86_64/DVD1/boot/x86_64/loader/linux
    - source: http://schnell.nue.suse.com/SLE11/SLES-11-SP1-GM/x86_64/DVD1/boot/x86_64/loader/linux
    - source_hash: sha1=f18abd366f40c12971b54ac787eb9737012badab
    - makedirs: True

test_package_without_vendor_file:
  file.managed:
    - name: /root/subscription-tools-1.0-0.noarch.rpm
    - source: salt://suse_manager_server/testsuite/subscription-tools-1.0-0.noarch.rpm

test_autoinstallation_file:
  file.managed:
    - name: /install/empty.xml
    - source: salt://suse_manager_server/testsuite/empty.xml
    - makedirs: True

test_vcenter_file:
  file.managed:
    - name: /var/tmp/vCenter.json
    - source: salt://suse_manager_server/testsuite/vCenter.json

lftp:
  pkg.installed:
    - require:
      - sls: suse_manager_server.repos

test_repo:
  cmd.run:
    - name: lftp -c "open http://download.suse.de; mirror -x repocache ibs/Devel:/Galaxy:/TestsuiteRepo/SLE_12_SP1 /srv/www/htdocs/pub/TestRepo"
    - require:
      - pkg: lftp

another_test_repo:
  file.symlink:
    - name: /srv/www/htdocs/pub/AnotherRepo
    - target: TestRepo
    - require:
      - cmd: test_repo

# modify cobbler to be executed from remote-machines..

cobbler_configuration:
    service:
    - name : cobblerd.service
    - running
    - enable: True
    - watch :
      - file : /etc/cobbler/settings
    - require:
      - sls: suse_manager_server
    file.replace:
    - name: /etc/cobbler/settings
    - pattern: "redhat_management_permissive: 0"
    - repl: "redhat_management_permissive: 1"
    - require:
      - sls: suse_manager_server

expect:
  pkg.installed

aaa_base-extras:
  pkg.installed

salt-ssh:
  pkg.installed:
    - require:
      - sls: suse_manager_server.repos

enable_salt_content_staging_window:
  file.replace:
    - name: /usr/share/rhn/config-defaults/rhn_java.conf
    - pattern: 'salt_content_staging_window = (.*)'
    - repl: 'salt_content_staging_window = 0.05'
    - require:
      - pkg: suse_manager_packages

enable_salt_content_staging_advance:
  file.replace:
    - name: /usr/share/rhn/config-defaults/rhn_java.conf
    - pattern: 'salt_content_staging_advance = (.*)'
    - repl: 'salt_content_staging_advance = 0.1'
    - require:
      - pkg: suse_manager_packages

tomcat:
{'fraction_non_alphanumeric': 0.11784555483452304, 'fraction_numerical': 0.06515249837767684, 'mean_word_length': 3.38089823763502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '1772484', 'n_tokens_mistral': 3440, 'n_tokens_neox': 3097, 'n_words': 354}