This file contains hidden or 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
class pe_users_and_groups { | |
user { 'pe-activemq': | |
ensure => 'present', | |
comment => 'Puppet Enterprise Apache Activemq', | |
gid => '492', | |
home => '/opt/puppetlabs/server/data/activemq', | |
password => '!!', | |
password_max_age => '-1', | |
password_min_age => '-1', | |
shell => '/sbin/nologin', |
This file contains hidden or 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
## in case an older version of puppet is installed, remove it | |
apt-get purge puppet -y | |
rm /etc/puppet -rf | |
apt-get autoremove -y | |
apt-get install wget | |
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-wheezy.deb | |
dpkg -i puppetlabs-release-pc1-wheezy.deb | |
apt-get update |
This file contains hidden or 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
Divinity Banner | |
You are not logged in. [Log In] Larian Studios » Forums » Divinity - Original Sin » Divinity - Original Sin - Enhanced Edition » Enhanced Edition Changelist Register User Forum List Calendar Active Topics FAQ | |
Topic Options | |
#572102 - Yesterday at 02:43 PM Enhanced Edition Changelist | |
ForkTong Offline | |
Registered: 12/21/03 | |
Posts: 814 |
This file contains hidden or 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
vagrant:~ vagrant$ java | |
No Java runtime present, requesting install. | |
vagrant:~ vagrant$ /usr/libexec/java_home --failfast | |
Unable to find any JVMs matching version "(null)". | |
vagrant:~ vagrant$ |
This file contains hidden or 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
HOSTS: | |
ubuntu-12042-x64: | |
roles: | |
- master | |
- database | |
- dashboard | |
platform: ubuntu-12.04-amd64 | |
box: ubuntu-server-12042-x64-vbox4210-nocm | |
box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box | |
hypervisor: vagrant |
This file contains hidden or 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
def get_swap_files(file_path) | |
begin | |
output = swapon(['-s']) | |
rescue Puppet::ExecutionFailure => e | |
Puppet.debug("#get_swap_files had an error -> #{e.inspect}") | |
return nil | |
end | |
swapfiles = output.split("\n").sort | |
swapfiles.include?(file_path) | |
end |
This file contains hidden or 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
#!/bin/bash | |
sudo /usr/sbin/groupadd vagrant | |
sudo /usr/sbin/useradd vagrant -g vagrant -G wheel | |
echo "vagrant" | sudo passwd --stdin vagrant | |
echo "vagrant ALL=(ALL) NOPASSWD: ALL" |sudo tee /etc/sudoers.d/vagrant 1>/dev/null | |
sudo chmod 0440 /etc/sudoers.d/vagrant | |
sudo mkdir -m 700 /home/vagrant/.ssh | |
sudo touch /home/vagrant/.ssh/authorized_keys | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" | sudo tee /home/vagrant/.ssh/authorized_keys 1>/dev/null | |
sudo chmod 600 /home/vagrant/.ssh/authorized_keys |
This file contains hidden or 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
package { 'WinRAR 5.21 beta 2 (64-bit)': | |
ensure => absent, | |
uninstall_options => ['/S'], | |
} |
This file contains hidden or 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
Set-ExecutionPolicy Unrestricted -Force | |
function Start-ProcessAsAdmin( | |
[string] $FilePath, | |
[string] $Arguments) | |
{ | |
if ($FilePath -match ".*powershell") | |
{ | |
$Arguments = "-NoProfile -ExecutionPolicy Unrestricted -Command `"$Arguments`"" | |
} |
This file contains hidden or 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
function Start-ProcessAsAdmin( | |
[string] $FilePath, | |
[string] $Arguments) | |
{ | |
if ($FilePath -match ".*powershell") | |
{ | |
$Arguments = "-NoProfile -ExecutionPolicy Unrestricted -Command `"$Arguments`"" | |
} | |
$process = New-Object System.Diagnostics.Process |