commit
a1819a7d9d
7 changed files with 133 additions and 15 deletions
BIN
files/iceman/iceman.jpg
Executable file
BIN
files/iceman/iceman.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 260 KiB |
29
files/iceman/index.html
Normal file
29
files/iceman/index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Iceman</title>
|
||||
<style>
|
||||
html {
|
||||
background: black url(iceman.jpg) no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
font-size: 5em;
|
||||
|
||||
color: white;
|
||||
|
||||
text-shadow:
|
||||
-1px -1px 0 #000,
|
||||
1px -1px 0 #000,
|
||||
-1px 1px 0 #000,
|
||||
1px 1px 0 #000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
You can be my wingman any time.
|
||||
</body>
|
||||
</html>
|
29
files/maverick/index.html
Normal file
29
files/maverick/index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Maverick</title>
|
||||
<style>
|
||||
html {
|
||||
background: black url(maverick.jpg) no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
font-size: 5em;
|
||||
|
||||
color: white;
|
||||
|
||||
text-shadow:
|
||||
-1px -1px 0 #000,
|
||||
1px -1px 0 #000,
|
||||
-1px 1px 0 #000,
|
||||
1px 1px 0 #000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Bullshit! You can be mine.
|
||||
</body>
|
||||
</html>
|
BIN
files/maverick/maverick.jpg
Executable file
BIN
files/maverick/maverick.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 286 KiB |
|
@ -7,10 +7,15 @@ group { 'web':
|
|||
# atomaka, with SSH key
|
||||
user { 'atomaka':
|
||||
ensure => present,
|
||||
groups => ['sudo', 'web'],
|
||||
groups => ['sudo', 'web', 'maverick', 'iceman'],
|
||||
managehome => true,
|
||||
shell => '/bin/zsh',
|
||||
require => [ Package['zsh'], Group['web'] ]
|
||||
require => [
|
||||
Package['zsh'],
|
||||
Group['web'],
|
||||
User['maverick'],
|
||||
User['iceman'],
|
||||
],
|
||||
}
|
||||
file { '/home/atomaka/.ssh':
|
||||
ensure => directory,
|
||||
|
@ -36,6 +41,15 @@ user { 'jeff':
|
|||
password => '$6$.AURF9sE09Q$..S10CFY7G.AVXzSW//w6GoV6yPzBzdvyUl8a7oyYbW/XzBU.o6AdHxTgTkCSWb64zmN3QoKovoUyLJhE/MFP/',
|
||||
require => Group['web'],
|
||||
}
|
||||
#maverick and iceman, no login
|
||||
user { 'maverick':
|
||||
ensure => present,
|
||||
shell => '/sbin/nologin',
|
||||
}
|
||||
user { 'iceman':
|
||||
ensure => present,
|
||||
shell => '/sbin/nologin',
|
||||
}
|
||||
|
||||
# PACKAGES
|
||||
package { 'mosh': }
|
||||
|
@ -55,7 +69,7 @@ class { 'apache':
|
|||
}
|
||||
|
||||
# CONFIGURATIONS
|
||||
ssh::server::configline { 'Port': value => '22984' }
|
||||
ssh::server::configline { 'Port': value => '22985' }
|
||||
ssh::server::configline { 'PermitRootLogin': value => 'no' }
|
||||
ssh::server::configline { 'PasswordAuthentication': value => 'yes' }
|
||||
ssh::server::configline { 'AllowUsers/1': value => 'atomaka' }
|
||||
|
@ -74,22 +88,49 @@ apache::vhost { 'tc362.atomaka.com':
|
|||
docroot_group => 'web',
|
||||
}
|
||||
|
||||
# FILES
|
||||
file { '/var/www/tc362.atomaka.com':
|
||||
ensure => directory,
|
||||
owner => 'atomaka',
|
||||
group => 'web',
|
||||
mode => '2775',
|
||||
before => Apache::Vhost['tc362.atomaka.com'],
|
||||
apache::vhost { 'maverick.atomaka.com':
|
||||
port => '80',
|
||||
docroot => '/var/www/maverick.atomaka.com',
|
||||
docroot_owner => 'maverick',
|
||||
docroot_group => 'maverick',
|
||||
}
|
||||
|
||||
file { '/var/www/tc362.atomaka.com/index.html':
|
||||
ensure => present,
|
||||
apache::vhost { 'iceman.atomaka.com':
|
||||
port => '80',
|
||||
docroot => '/var/www/iceman.atomaka.com',
|
||||
docroot_owner => 'iceman',
|
||||
docroot_group => 'iceman',
|
||||
}
|
||||
|
||||
# FILES
|
||||
file { '/var/www/tc362.atomaka.com':
|
||||
ensure => directory,
|
||||
owner => 'atomaka',
|
||||
group => 'web',
|
||||
mode => '0664',
|
||||
content => file('/tmp/puppet/files/index.html'),
|
||||
require => File['/var/www/tc362.atomaka.com'],
|
||||
mode => '2775',
|
||||
source => '/tmp/puppet/files/tc362',
|
||||
recurse => true,
|
||||
before => Apache::Vhost['tc362.atomaka.com'],
|
||||
}
|
||||
|
||||
file { '/var/www/maverick.atomaka.com':
|
||||
ensure => directory,
|
||||
owner => 'maverick',
|
||||
group => 'maverick',
|
||||
mode => '2775',
|
||||
source => '/tmp/puppet/files/maverick',
|
||||
recurse => true,
|
||||
before => Apache::Vhost['maverick.atomaka.com'],
|
||||
}
|
||||
|
||||
file { '/var/www/iceman.atomaka.com':
|
||||
ensure => directory,
|
||||
owner => 'iceman',
|
||||
group => 'iceman',
|
||||
mode => '2775',
|
||||
source => '/tmp/puppet/files/iceman',
|
||||
recurse => true,
|
||||
before => Apache::Vhost['iceman.atomaka.com'],
|
||||
}
|
||||
|
||||
file { '/home/atomaka/web':
|
||||
|
@ -100,6 +141,22 @@ file { '/home/atomaka/web':
|
|||
require => [ User['atomaka'], File['/var/www/tc362.atomaka.com'] ],
|
||||
}
|
||||
|
||||
file { '/home/atomaka/maverick':
|
||||
ensure => link,
|
||||
owner => 'atomaka',
|
||||
group => 'atomaka',
|
||||
target => '/var/www/maverick.atomaka.com',
|
||||
require => [ User['atomaka'], File['/var/www/maverick.atomaka.com'] ],
|
||||
}
|
||||
|
||||
file { '/home/atomaka/iceman':
|
||||
ensure => link,
|
||||
owner => 'atomaka',
|
||||
group => 'atomaka',
|
||||
target => '/var/www/iceman.atomaka.com',
|
||||
require => [ User['atomaka'], File['/var/www/iceman.atomaka.com'] ],
|
||||
}
|
||||
|
||||
file { '/home/jeff/web':
|
||||
ensure => link,
|
||||
owner => 'jeff',
|
||||
|
|
3
week6/subdomains.txt
Normal file
3
week6/subdomains.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
162.243.226.212
|
||||
* iceman.atomaka.com
|
||||
* maverick.atomaka.com
|
Loading…
Reference in a new issue