Skip to content

Commit

Permalink
Registration via org and token
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <[email protected]>
  • Loading branch information
desmax74 committed Aug 30, 2024
1 parent d412458 commit 1761fdf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions vm-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Reload
vagrant reload --provision
```

All commands available
```
vagrant list-commands
```

## Ansible
From the root of the project

Expand Down
11 changes: 9 additions & 2 deletions vm-testing/rhel9-vm/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

# https://github.com/projectatomic/adb-vagrant-registration
config.registration.unregister_on_halt = false
#config.registration.username = '<your Red Hat username>'
#config.registration.password = '<your Red Hat password>'
config.registration.username = ENV['TPA_SINGLE_NODE_REGISTRY_USERNAME']
config.registration.password = ENV['TPA_SINGLE_NODE_REGISTRY_PASSWORD']

#config.registration.org = = '<your org>'
#config.registration.activationkey = '<your activationkey>'
#config.registration.org = ENV['TPA_SINGLE_NODE_REGISTRY_ORG']
#config.registration.activationkey = ENV['TPA_SINGLE_NODE_REGISTRY_TOKEN']

config.vm.define "trustification" do |main_server|
main_server.vm.box = "generic-x64/rhel9"
#main_server.vm.box = "fedora/40-cloud-base"
Expand All @@ -19,10 +25,11 @@ Vagrant.configure("2") do |config|
libvirt.memory = "4096"
libvirt.cpus = "2"
# libvirt.qemu_use_session = "false"
# libvirt.nested = true
end

main_server.vm.provision "ansible" do |ansible|
ansible.verbose = "vvvv"
ansible.verbose = "v"
ansible.compatibility_mode = "2.0"
ansible.playbook = "./../../play.yml"
ansible.galaxy_role_file = "./../../requirements.yml"
Expand Down

0 comments on commit 1761fdf

Please sign in to comment.