deb-mock/mock/integration-tests/setup-playbook
robojerk 4c0dcb2522
Some checks failed
Build Deb-Mock Package / build (push) Successful in 54s
Lint Code / Lint All Code (push) Failing after 1s
Test Deb-Mock Build / test (push) Failing after 36s
enhance: Add comprehensive .gitignore for deb-mock project
- Add mock-specific build artifacts (chroot/, mock-*, mockroot/)
- Include package build files (*.deb, *.changes, *.buildinfo)
- Add development tools (.coverage, .pytest_cache, .tox)
- Include system files (.DS_Store, Thumbs.db, ._*)
- Add temporary and backup files (*.tmp, *.bak, *.backup)
- Include local configuration overrides (config.local.yaml, .env.local)
- Add test artifacts and documentation builds
- Comprehensive coverage for Python build system project

This ensures build artifacts, chroot environments, and development
tools are properly ignored in version control.
2025-08-18 23:37:49 -07:00
..
files enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
tasks enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
templates enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
.gitignore enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
play-tf.yml enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
README.md enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
setup-playbook.yml enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00
spawn-test-machine-ec2.yaml enhance: Add comprehensive .gitignore for deb-mock project 2025-08-18 23:37:49 -07:00

Starting EC2 machine

  1. init git submodules

    git submodule update --init --recursive
    
  2. setup AWS vars like this (change fields appropriately):

    cat > group_vars/all.yaml <<EOF
    ---
    aws:
      image: ami-004f552bba0e5f64f
      profile: fedora-copr  # you need credentials for this
      ssh_key: praiskup
      instance_type: t2.xlarge
      security_group: mock-testing
      root_volume_size: 60
      infra_subnet: subnet-09c74a3e6420a206b
    EOF
    
  3. setup credentials/aws config:

    cat ~/.aws/config
    [profile fedora-copr]
    region = us-east-1
    output = table
    $ cast ~/.aws/
    
    cat ~/.aws/credentials
    [fedora-copr]
    aws_access_key_id=<the-key-id>
    aws_secret_access_key=<the-secret-key>
    
  4. start the machine

    ansible-playbook spawn-test-machine-ec2.yaml
    
    PLAY [Start new machine] *******************
    
    TASK [create the testing mock vm in ec2] ***
    changed: [localhost]
    
    TASK [print ipv4] **************************
    ok: [localhost] => {
        "msg": [
            "Instance ID: i-02f769285490cbb64",
            "Network ID: eni-0298fa7a391ecc42e",
            "Unusable Public IP: 107.20.103.13"
        ]
    }
    
    PLAY RECAP ********************************
    localhost : ok=2 changed=1 unreachable=0 ...