This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uninstall Vagrant delivered in Fedora | |
dnf remove vagrant | |
# Install Vagrant from oficial rpm which has WinRM included | |
dnf install https://releases.hashicorp.com/vagrant/2.0.0/vagrant_2.0.0_x86_64.rpm | |
# Install libvirt/KVM plugin (https://github.com/vagrant-libvirt/vagrant-libvirt) for vagrant | |
vagrant plugin install vagrant-libvirt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find /var/tmp/a | |
/var/tmp/a | |
/var/tmp/a/result | |
/var/tmp/a/result/my_fedora_img | |
/var/tmp/a/result/live-rootfs.squashfs.img | |
/var/tmp/a/result/initramfs-4.11.9-300.fc26.x86_64.img | |
/var/tmp/a/result/vmlinuz-4.11.9-300.fc26.x86_64 | |
/var/tmp/a/result/PXE_CONFIG | |
$ cat /var/tmp/a/result/PXE_CONFIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version=DEVEL | |
# Firewall configuration | |
firewall --disabled | |
# Use network installation | |
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch | |
# Root password | |
rootpw --plaintext xxxxxxxx | |
# Network information | |
network --bootproto=dhcp --device=link --activate | |
# System authorization information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# livemedia-creator --make-pxe-live --live-rootfs-keep-size --image-name=my_fedora_img --tmp=/var/tmp/a --ks fedora26-my.ks --iso=/home/ruzickap/data2/iso/Fedora-Workstation-netinst-x86_64-26-1.5.iso --resultdir=/var/tmp/a/result | |
/usr/lib64/python3.5/optparse.py:999: PendingDeprecationWarning: The KSOption class is deprecated and will be removed in pykickstart-3. Use the argparse module instead. | |
option = self.option_class(*args, **kwargs) | |
2017-07-16 08:12:28,922: disk_img = /var/tmp/a/result/my_fedora_img | |
2017-07-16 08:12:28,923: Using disk size of 6002MiB | |
2017-07-16 08:12:28,923: install_log = /var/tmp/lorax/virt-install.log | |
2017-07-16 08:12:29,161: qemu vnc=127.0.0.1:0 | |
2017-07-16 08:12:29,161: Running qemu | |
2017-07-16 08:12:29,286: Processing logs from ('127.0.0.1', 52518) | |
2017-07-16 08:40:25,126: Installation finished without errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ export PACKER_LOG=1 | |
+ PACKER_LOG=1 | |
+ /home/ruzickap/bin/packer build -color=false windows-server-2016-eval-ansible.json | |
2017/04/06 18:50:15 [INFO] Packer version: 1.0.0 | |
2017/04/06 18:50:15 Packer Target OS/Arch: linux amd64 | |
2017/04/06 18:50:15 Built with Go Version: go1.8 | |
2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap | |
2017/04/06 18:50:15 Using internal plugin for amazon-ebssurrogate | |
2017/04/06 18:50:15 Using internal plugin for file | |
2017/04/06 18:50:15 Using internal plugin for googlecompute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Create Instance in AWS | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
aws_access_key: "xxxxxx" | |
aws_secret_key: "xxxxxx" | |
security_token: "xxxxxx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible_winrm_operation_timeout_sec: 100 | |
ansible_winrm_read_timeout_sec: 120 | |
windows_machines_ansible_user: ansible | |
windows_machines_ansible_pass: ansible | |
domain: example.com | |
system_security_settings_tmp_file: c:\\secedit-export.cfg | |
### AWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Start NTP service (w32time) | |
win_service: | |
name: w32time | |
state: started | |
- name: Configure NTP | |
raw: w32tm /config /manualpeerlist:"0.rhel.pool.ntp.org" /reliable:yes /update | |
- name: Install Chromium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Search for the latest Windows Server 2016 AMI | |
ec2_ami_find: | |
region: "{{ aws_region }}" | |
platform: windows | |
owner: amazon | |
architecture: x86_64 | |
name: "Windows_Server-2016-English-Full-Base*" | |
sort: creationDate | |
sort_order: descending | |
no_result_action: fail |