Skip to content

Commit 08640ce

Browse files
committed
Adding generated passwd and akamai DNS workaround
1 parent 1a353e0 commit 08640ce

File tree

7 files changed

+655
-2
lines changed

7 files changed

+655
-2
lines changed

defaults/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
ocp4_aio_infra_role_deploy_bastion_retries: 10
33
ocp4_aio_infra_role_deploy_bastion_delay: 30
4+
cloud_provider: none
5+
baremetal_provider: none

files/services/named-metal.conf

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
//
2+
// named.conf
3+
//
4+
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
5+
// server as a caching only nameserver (as a localhost DNS resolver only).
6+
//
7+
// See /usr/share/doc/bind*/sample/ for example named configuration files.
8+
//
9+
// See the BIND Administrator's Reference Manual (ARM) for details about the
10+
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
11+
12+
options {
13+
listen-on { any;} ;
14+
listen-on-v6 port 53 { ::1; };
15+
forwarders { 192.168.123.1; };
16+
directory "/var/named";
17+
dump-file "/var/named/data/cache_dump.db";
18+
statistics-file "/var/named/data/named_stats.txt";
19+
memstatistics-file "/var/named/data/named_mem_stats.txt";
20+
recursing-file "/var/named/data/named.recursing";
21+
secroots-file "/var/named/data/named.secroots";
22+
//allow-query { localhost; 192.168.123.0/24; };
23+
24+
/*
25+
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
26+
- If you are building a RECURSIVE (caching) DNS server, you need to enable
27+
recursion.
28+
- If your recursive DNS server has a public IP address, you MUST enable access
29+
control to limit queries to your legitimate users. Failing to do so will
30+
cause your server to become part of large scale DNS amplification
31+
attacks. Implementing BCP38 within your network would greatly
32+
reduce such attack surface
33+
*/
34+
recursion yes;
35+
36+
dnssec-enable no;
37+
dnssec-validation no;
38+
39+
/* Path to ISC DLV key */
40+
bindkeys-file "/etc/named.root.key";
41+
42+
managed-keys-directory "/var/named/dynamic";
43+
44+
pid-file "/run/named/named.pid";
45+
session-keyfile "/run/named/session.key";
46+
response-policy { zone "rpz"; };
47+
};
48+
49+
logging {
50+
channel default_debug {
51+
file "data/named.run";
52+
severity dynamic;
53+
};
54+
};
55+
56+
zone "." IN {
57+
type hint;
58+
file "named.ca";
59+
};
60+
61+
zone "aio.example.com" IN {
62+
type master;
63+
file "aio.example.com.db";
64+
allow-update { none; };
65+
};
66+
67+
zone "123.168.192.in-addr.arpa" IN {
68+
type master;
69+
file "123.168.192.db";
70+
allow-update { none; };
71+
};
72+
73+
zone "rpz" {
74+
type master;
75+
file "rpz.db";
76+
};
77+
78+
include "/etc/named.rfc1912.zones";
79+
include "/etc/named.root.key";
80+

files/services/rpz.db

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$TTL 60
2+
@ IN SOA localhost. root.localhost. (
3+
2015112501 ; serial
4+
1h ; refresh
5+
30m ; retry
6+
1w ; expiry
7+
30m) ; minimum
8+
IN NS localhost.
9+
10+
localhost A 127.0.0.1
11+
12+
registry.redhat.io A 104.124.109.202

tasks/deploy_bastion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315

316316
- name: Set the root password on the centos8-kvm-cnv image
317317
ansible.builtin.command: >
318-
virt-customize -a /var/lib/libvirt/images/centos8-kvm-cnv.qcow2 --root-password password:redhat
318+
virt-customize -a /var/lib/libvirt/images/centos8-kvm-cnv.qcow2 --root-password password:{{ ocp4_aio_root_password }}
319319
when: not centos8_cnv.stat.exists
320320

321321
- name: Convert centos8-kvm-cnv image to raw

0 commit comments

Comments
 (0)