This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 355
[TC-6] WIP adds non-interactive mode to traffic_ops postinstall #126
Closed
Closed
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
1c22e37
Reverted changes not relevant to new postinstall
4d5070b
Several minor updates to sanityCheck
aa1369d
Formatting changes
7a2f761
More updates to postinstall for handling logic flow
2b5e6f9
Changed command line argument -i to -a and interactive mode is now de…
b9bf24d
Fixed formatting
675f6d9
Added logging and outputs config file which can be used as input
53136c2
Updated to include full new postinstall with new perl modules
a5bdbb0
Many minor tweaks - better logging, gzip logs, and comments
180848b
Removed comcast copyright line
1d2c2ed
Fixed dependencies not being downloaded by adding -y to yum install
3f949d0
Added apache license to added files
35dbd4f
Minor changes to formatting and reverted changes made to build_traffi…
193a7f3
Reset build_trafficops_perl_library
74c5e12
Formatted input.json
bc4e909
Perltidy on all files
d4fa565
Added apache license to ProfileCleanup
48bbcf6
Added apache license to postinstall-new-integrated
85dc6ee
Changed filename to postinstall-new
2c95bf7
Changed params to cpan to match open source
7889faf
Removed 2nd check for root access in postinstall-new
acdd5b7
Removed creation of reconfigure file
950e883
Added option to bypass certificate generation
76b381c
Added question for cert generation to input.json
9239ca6
Fixed issue around whether or not to generate certificate
d27fa62
Added description to database.conf
f900040
Changed format of dbconf.yml to more closely match format of old post…
abdc647
-Removed reconfigure line
534d5f3
Fixed input.json
a43c8f8
Removed global vars and made many minor improvements
PeterRyder a65b0a0
ran perltidy
PeterRyder d6305ba
Changed database to pg and made downloading maxmind database optional…
PeterRyder c0fd7b3
Change default answer to pg in postinstall
PeterRyder 4ce81f0
Misc fixes for maxmind location in config and generating a cert witho…
PeterRyder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| 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", | ||
| "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" | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.