Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8db47fd
Work in progress of automating postinstall
Nov 9, 2016
1c22e37
Reverted changes not relevant to new postinstall
Nov 9, 2016
4d5070b
Several minor updates to sanityCheck
Nov 14, 2016
aa1369d
Formatting changes
Nov 14, 2016
7a2f761
More updates to postinstall for handling logic flow
Nov 15, 2016
2b5e6f9
Changed command line argument -i to -a and interactive mode is now de…
Nov 15, 2016
b9bf24d
Fixed formatting
Nov 15, 2016
675f6d9
Added logging and outputs config file which can be used as input
Nov 22, 2016
53136c2
Updated to include full new postinstall with new perl modules
Dec 1, 2016
a5bdbb0
Many minor tweaks - better logging, gzip logs, and comments
Dec 2, 2016
180848b
Removed comcast copyright line
Dec 2, 2016
1d2c2ed
Fixed dependencies not being downloaded by adding -y to yum install
Dec 5, 2016
3f949d0
Added apache license to added files
Dec 5, 2016
35dbd4f
Minor changes to formatting and reverted changes made to build_traffi…
Dec 7, 2016
193a7f3
Reset build_trafficops_perl_library
Dec 7, 2016
74c5e12
Formatted input.json
Dec 7, 2016
bc4e909
Perltidy on all files
Dec 7, 2016
d4fa565
Added apache license to ProfileCleanup
Dec 7, 2016
48bbcf6
Added apache license to postinstall-new-integrated
Dec 7, 2016
85dc6ee
Changed filename to postinstall-new
Dec 7, 2016
2c95bf7
Changed params to cpan to match open source
Dec 7, 2016
7889faf
Removed 2nd check for root access in postinstall-new
Dec 7, 2016
acdd5b7
Removed creation of reconfigure file
Dec 8, 2016
950e883
Added option to bypass certificate generation
Dec 13, 2016
76b381c
Added question for cert generation to input.json
Dec 13, 2016
9239ca6
Fixed issue around whether or not to generate certificate
Dec 15, 2016
d27fa62
Added description to database.conf
Dec 19, 2016
f900040
Changed format of dbconf.yml to more closely match format of old post…
Dec 19, 2016
abdc647
-Removed reconfigure line
Jan 9, 2017
534d5f3
Fixed input.json
Jan 9, 2017
a43c8f8
Removed global vars and made many minor improvements
PeterRyder Jan 12, 2017
a65b0a0
ran perltidy
PeterRyder Jan 12, 2017
d6305ba
Changed database to pg and made downloading maxmind database optional…
PeterRyder Jan 20, 2017
c0fd7b3
Change default answer to pg in postinstall
PeterRyder Jan 20, 2017
4ce81f0
Misc fixes for maxmind location in config and generating a cert witho…
PeterRyder Jan 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion traffic_ops/build/traffic_ops.spec
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ Built: %(date) by %{getenv: USER}
# install
if [ "$1" = "1" ]; then
# see postinstall, the .reconfigure file triggers init().
/bin/touch %{PACKAGEDIR}/.reconfigure
echo -e "\nRun /opt/traffic_ops/install/bin/postinstall from the root home directory to complete the install.\n"
fi

Expand Down
175 changes: 175 additions & 0 deletions traffic_ops/install/bin/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"/opt/traffic_ops/app/conf/production/database.conf":[
{
"Database type":"pg",
"config_var":"type"
},
{
"Database name":"traffic_ops_db",
"config_var":"dbname"
},
{
"Database server hostname IP or FQDN":"localhost",
"config_var":"hostname"
},
{
"Database port number":"3306",
"config_var":"port"
},
{
"Traffic Ops database user":"traffic_ops",
"config_var":"user"
},
{
"Traffic Ops database password":"default",
"config_var":"password",
"hidden":"1"
}
],
"/opt/traffic_ops/app/db/dbconf.yml":[
{
"Database server root (admin) username":"root",
"config_var":"dbAdminUser"
},
{
"Database server admin password":"default",
"config_var":"dbAdminPw",
"hidden":"1"
},
{
"Download Maxmind Database?":"yes",
"config_var":"maxmind"
}
],
"/opt/traffic_ops/app/conf/cdn.conf":[
{
"Generate a new secret?":"yes",
"config_var":"genSecret"
},
{
"Number of secrets to keep?":"10",
"config_var":"keepSecrets"
}
],
"/opt/traffic_ops/app/conf/ldap.conf":[
{
"Do you want to set up LDAP?":"no",
"config_var":"setupLdap"
},
{
"LDAP server hostname":"",
"config_var":"hostname"
},
{
"LDAP Admin DN":"",
"config_var":"admin_dn"
},
{
"LDAP Admin Password":"",
"config_var":"password",
"hidden":"1"
},
{
"LDAP Search Base":"",
"config_var":"search_base"
}
],
"/opt/traffic_ops/install/data/json/users.json":[
{
"Administration username for Traffic Ops":"root",
"config_var":"tmAdminUser"
},
{
"Password for the admin user":"default",
"config_var":"tmAdminPw",
"hidden":"1"
}
],
"/opt/traffic_ops/install/data/profiles/":[
{
"Add custom profiles?":"no",
"config_var":"custom_profiles"
}
],
"/opt/traffic_ops/install/data/json/openssl_configuration.json":[
{
"Do you want to generate a certificate?":"yes",
"config_var":"genCert"
},
{
"Country Name (2 letter code)":"XX",
"config_var":"country"
},
{
"State or Province Name (full name)":"Default State",
"config_var":"state"
},
{
"Locality Name (eg, city)":"Default City",
"config_var":"locality"
},
{
"Organization Name (eg, company)":"Default Company Ltd",
"config_var":"company"
},
{
"Organizational Unit Name (eg, section)":"",
"config_var":"org_unit"
},
{
"Common Name (eg, your name or your server's hostname)":"example.com",
"config_var":"common_name"
},
{
"RSA Passphrase":"password",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passwords in files always worry me, we should maybe evaluate a command line option or have a separate file that can be stored locally to be safe.

"config_var":"rsaPassword",
"hidden":"1"
}
],
"/opt/traffic_ops/install/data/json/profiles.json":[
{
"Traffic Ops url":"https://localhost",
"config_var":"tm.url"
},
{
"Human-readable CDN Name. (No whitespace, please)":"kabletown_cdn",
"config_var":"cdn_name"
},
{
"Health Polling Interval (milliseconds)":"8000",
"config_var":"health_polling_int"
},
{
"DNS sub-domain for which your CDN is authoritative":"cdn1.kabletown.net",
"config_var":"dns_subdomain"
},
{
"TLD SOA admin":"traffic_ops",
"config_var":"soa_admin"
},
{
"TrafficServer Drive Prefix":"/dev/sd",
"config_var":"driver_prefix"
},
{
"TrafficServer RAM Drive Prefix":"/dev/ram",
"config_var":"ram_drive_prefix"
},
{
"TrafficServer RAM Drive Letters (comma separated)":"0,1,2,3,4,5,6,7",
"config_var":"ram_drive_letters"
},
{
"Health Threshold Load Average":"25",
"config_var":"health_thresh_load_avg"
},
{
"Health Threshold Available Bandwidth in Kbps":"1750000",
"config_var":"health_thresh_kbps"
},
{
"Traffic Server Health Connection Timeout (milliseconds)":"2000",
"config_var":"health_connect_timeout"
}
]
}
Loading