You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/05/09 18:30:36 UTC
[01/27] incubator-trafficcontrol git commit: updated to make errors
show file paths
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master bd603e85e -> 9bc5f048e
updated to make errors show file paths
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/1a296ab2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/1a296ab2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/1a296ab2
Branch: refs/heads/master
Commit: 1a296ab2aaeeb263c78c3af1380c0cd606af5b25
Parents: 3336900
Author: Dewayne Richardson <de...@apache.org>
Authored: Wed May 3 10:48:55 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/lib/InstallUtils.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1a296ab2/traffic_ops/install/lib/InstallUtils.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/InstallUtils.pm b/traffic_ops/install/lib/InstallUtils.pm
index 22f53b8..040a8e9 100644
--- a/traffic_ops/install/lib/InstallUtils.pm
+++ b/traffic_ops/install/lib/InstallUtils.pm
@@ -199,7 +199,7 @@ sub trim {
sub readJson {
my $file = shift;
- open( my $fh, '<', $file ) or die("open($file): $!");
+ open( my $fh, '<', $file ) or die("open(): $!");
local $/; # slurp mode
my $text = <$fh>;
undef $fh;
@@ -208,7 +208,7 @@ sub readJson {
sub writeJson {
my $file = shift;
- open( my $fh, '>', $file ) or die("open($file): $!");
+ open( my $fh, '>', $file ) or die("open(): $!");
logger( "Writing json to $file", "info" );
foreach my $data (@_) {
my $json_text = JSON->new->utf8->pretty->encode($data);
@@ -221,7 +221,7 @@ sub writePerl {
my $file = shift;
my $data = shift;
- open( my $fh, '>', $file ) or die("open($file): $!");
+ open( my $fh, '>', $file ) or die("open(): $!");
my $dumper = Data::Dumper->new( [$data] );
# print without var names and with simple indentation
[12/27] incubator-trafficcontrol git commit: added license
Posted by da...@apache.org.
added license
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d289873d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d289873d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d289873d
Branch: refs/heads/master
Commit: d289873d9995c4abf14b9d5ecf6f255244e3600b
Parents: 8af6bb0
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 15:29:49 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/data/profiles/load_profiles.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d289873d/traffic_ops/install/data/profiles/load_profiles.sh
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/load_profiles.sh b/traffic_ops/install/data/profiles/load_profiles.sh
index d842b0e..4b4cb03 100755
--- a/traffic_ops/install/data/profiles/load_profiles.sh
+++ b/traffic_ops/install/data/profiles/load_profiles.sh
@@ -1 +1 @@
-for f in /opt/traffic_ops/install/data/profiles/*.sql ; do psql -U traffic_ops -h localhost traffic_ops2 -f $f ; done
+for f in /opt/traffic_ops/install/data/profiles/*.sql ; do psql -U traffic_ops -h localhost traffic_ops -f $f ; done
[15/27] incubator-trafficcontrol git commit: successfully demo'd
postinstall after lots of testing
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/lib/Database.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/Database.pm b/traffic_ops/install/lib/Database.pm
new file mode 100644
index 0000000..9dbbc31
--- /dev/null
+++ b/traffic_ops/install/lib/Database.pm
@@ -0,0 +1,55 @@
+#!/usr/bin/perl
+
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+package Database;
+
+use warnings;
+use strict;
+
+use base qw{ Exporter };
+our @EXPORT_OK = qw{ connect };
+our %EXPORT_TAGS = ( all => \@EXPORT_OK );
+
+#------------------------------------
+sub connect {
+ my $databaseConfFile = shift;
+ my $todbconf = shift;
+
+ my $dbconf = InstallUtils::readJson($databaseConfFile);
+
+ # Check if the Postgres db is used and set the admin database to be "postgres"
+ my $dbName = $dbconf->{type};
+ if ( $dbconf->{type} eq "Pg" ) {
+ $dbName = "traffic_ops";
+ }
+
+ $ENV{PGUSER} = $todbconf->{"pgUser"};
+ $ENV{PGPASSWORD} = $todbconf->{"pgPassword"};
+
+ my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbName, $dbconf->{hostname}, $dbconf->{port} );
+ my $dbh = DBI->connect( $dsn, $todbconf->{"pgUser"}, $todbconf->{"pgPassword"} );
+ if ($dbh) {
+ InstallUtils::logger( "Database connection succeeded", "info" );
+ }
+ else {
+ InstallUtils::logger( "Error connecting to database", "error" );
+ exit(-1);
+ }
+ return $dbh;
+}
+
+
+1;
[16/27] incubator-trafficcontrol git commit: successfully demo'd
postinstall after lots of testing
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/trafficserver_mid.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/trafficserver_mid.sql b/traffic_ops/install/data/profiles/trafficserver_mid.sql
new file mode 100644
index 0000000..26a0f05
--- /dev/null
+++ b/traffic_ops/install/data/profiles/trafficserver_mid.sql
@@ -0,0 +1,907 @@
+INSERT INTO profile (name, description, type) VALUES ('MID_PROFILE','Mid Cache','ATS_PROFILE') ON CONFLICT (name) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http','package','1.2-8.el6.x86_64') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'astats_over_http' and config_file = 'package' and value = '1.2-8.el6.x86_64') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http.so','plugin.config','') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'astats_over_http.so' and config_file = 'plugin.config' and value = '') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v4','ip_allow.config','16') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v4' and config_file = 'ip_allow.config' and value = '16') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v6','ip_allow.config','40') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v6' and config_file = 'ip_allow.config' and value = '40') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v4','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_number_v4' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v6','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_number_v6' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.accept_threads','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.accept_threads' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.admin_user','records.config','STRING admin') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.admin_user' and config_file = 'records.config' and value = 'STRING admin') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.autoconf_port','records.config','INT 8083') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.autoconf_port' and config_file = 'records.config' and value = 'INT 8083') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.number_config_bak','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.number_config_bak' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.user_id','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.user_id' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.abs_path','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.abs_path' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.bin','records.config','STRING example_alarm_bin.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.bin' and config_file = 'records.config' and value = 'STRING example_alarm_bin.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm_email','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm_email' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.debug_filter','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.debug_filter' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.enable_reclaim','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.enable_reclaim' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.max_overage','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.max_overage' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.thread_freelist_size','records.config','INT 1024') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.thread_freelist_size' and config_file = 'records.config' and value = 'INT 1024') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_customizations','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_customizations' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_logging','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_logging' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.response_suppression_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.response_suppression_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.template_sets_dir','records.config','STRING etc/trafficserver/body_factory') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.template_sets_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver/body_factory') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.control.filename','records.config','STRING cache.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.control.filename' and config_file = 'records.config' and value = 'STRING cache.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.enable_read_while_writer','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.enable_read_while_writer' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.hosting_filename','records.config','STRING hosting.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.hosting_filename' and config_file = 'records.config' and value = 'STRING hosting.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ip_allow.filename','records.config','STRING ip_allow.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ip_allow.filename' and config_file = 'records.config' and value = 'STRING ip_allow.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.limits.http.max_alts','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.limits.http.max_alts' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.max_doc_size','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.max_doc_size' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.min_average_object_size','records.config','INT 131072') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.min_average_object_size' and config_file = 'records.config' and value = 'INT 131072') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.mutex_retry_delay','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.mutex_retry_delay' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.permit.pinning','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.permit.pinning' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.algorithm','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.algorithm' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.compress','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.compress' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache_cutoff','records.config','INT 1073741824') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache_cutoff' and config_file = 'records.config' and value = 'INT 1073741824') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.size','records.config','INT 34359738368') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.size' and config_file = 'records.config' and value = 'INT 34359738368') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.use_seen_filter','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.use_seen_filter' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.target_fragment_size','records.config','INT 1048576') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.target_fragment_size' and config_file = 'records.config' and value = 'INT 1048576') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.threads_per_disk','records.config','INT 8') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.threads_per_disk' and config_file = 'records.config' and value = 'INT 8') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_configuration ','records.config','STRING cluster.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_configuration ' and config_file = 'records.config' and value = 'STRING cluster.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_port','records.config','INT 8086') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_port' and config_file = 'records.config' and value = 'INT 8086') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.ethernet_interface','records.config','STRING lo') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.ethernet_interface' and config_file = 'records.config' and value = 'STRING lo') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.log_bogus_mc_msgs','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.log_bogus_mc_msgs' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_group_addr','records.config','STRING 224.0.1.37') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_group_addr' and config_file = 'records.config' and value = 'STRING 224.0.1.37') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mcport','records.config','INT 8089') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mcport' and config_file = 'records.config' and value = 'INT 8089') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_ttl','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_ttl' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.rsport','records.config','INT 8088') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.rsport' and config_file = 'records.config' and value = 'INT 8088') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.config_dir','records.config','STRING etc/trafficserver') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.config_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.core_limit','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.core_limit' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.tags','records.config','STRING http.*|dns.*') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.tags' and config_file = 'records.config' and value = 'STRING http.*|dns.*') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.show_location','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.show_location' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.lookup_timeout','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.lookup_timeout' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.max_dns_in_flight','records.config','INT 2048') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.max_dns_in_flight' and config_file = 'records.config' and value = 'INT 2048') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.nameservers','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.nameservers' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.resolv_conf','records.config','STRING /etc/resolv.conf') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.resolv_conf' and config_file = 'records.config' and value = 'STRING /etc/resolv.conf') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.round_robin_nameservers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.round_robin_nameservers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.search_default_domains','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.search_default_domains' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.splitDNS.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.splitDNS.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.url_expansions','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.url_expansions' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.validate_query_name','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.validate_query_name' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dump_mem_info_frequency','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dump_mem_info_frequency' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.env_prep','records.config','STRING example_prep.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.env_prep' and config_file = 'records.config' and value = 'STRING example_prep.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.affinity','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.affinity' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig.scale','records.config','FLOAT 1.5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig.scale' and config_file = 'records.config' and value = 'FLOAT 1.5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.limit','records.config','INT 32') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.limit' and config_file = 'records.config' and value = 'INT 32') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.header.parse.no_host_url_redirect','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.header.parse.no_host_url_redirect' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.serve_stale_for','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.serve_stale_for' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.size','records.config','INT 120000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.size' and config_file = 'records.config' and value = 'INT 120000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.storage_size','records.config','INT 33554432') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.storage_size' and config_file = 'records.config' and value = 'INT 33554432') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.strict_round_robin','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.strict_round_robin' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.timeout','records.config','INT 1440') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.timeout' and config_file = 'records.config' and value = 'INT 1440') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.ttl_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.ttl_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.accept_no_activity_timeout','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.accept_no_activity_timeout' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_insert_client_ip','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_insert_client_ip' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_other_header_list','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_other_header_list' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_client_ip','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_client_ip' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_cookie','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_cookie' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_from','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_from' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_referer','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_referer' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_user_agent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_user_agent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_active_timeout','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_active_timeout' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_completed_threshold','records.config','FLOAT 0.0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_completed_threshold' and config_file = 'records.config' and value = 'FLOAT 0.0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.allow_empty_doc','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.allow_empty_doc' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_responses_to_cookies','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_responses_to_cookies' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.enable_default_vary_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.enable_default_vary_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.probability','records.config','FLOAT 0.005') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.probability' and config_file = 'records.config' and value = 'FLOAT 0.005') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.time','records.config','INT 240') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.time' and config_file = 'records.config' and value = 'INT 240') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.guaranteed_max_lifetime','records.config','INT 2592000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.guaranteed_max_lifetime' and config_file = 'records.config' and value = 'INT 2592000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_lm_factor','records.config','FLOAT 0.10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_lm_factor' and config_file = 'records.config' and value = 'FLOAT 0.10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_max_lifetime','records.config','INT 86400') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_max_lifetime' and config_file = 'records.config' and value = 'INT 86400') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_min_lifetime','records.config','INT 3600') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_min_lifetime' and config_file = 'records.config' and value = 'INT 3600') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.http','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.http' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_authentication','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_authentication' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_cc_max_age','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_cc_max_age' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_server_no_cache','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_server_no_cache' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ims_on_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ims_on_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.max_stale_age','records.config','INT 604800') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.max_stale_age' and config_file = 'records.config' and value = 'INT 604800') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.range.lookup','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.range.lookup' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.required_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.required_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_images','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_images' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_other','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_other' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_text','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_text' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_revalidate','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_revalidate' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.chunking_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.chunking_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.congestion_control.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.congestion_control.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries_dead_server','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries_dead_server' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_rr_retries','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_rr_retries' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_timeout','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_ports','records.config','STRING 443 563') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_ports' and config_file = 'records.config' and value = 'STRING 443 563') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.abort_threshold','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.abort_threshold' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.cache_time','records.config','INT 300') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.cache_time' and config_file = 'records.config' and value = 'INT 300') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_http_stats','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_http_stats' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_url_expandomatic','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_url_expandomatic' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.forward.proxy_auth_to_parent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.forward.proxy_auth_to_parent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_age_in_response','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_age_in_response' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_request_via_str','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_request_via_str' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_response_via_str','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_response_via_str' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_squid_x_forwarded_for','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_squid_x_forwarded_for' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_in','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_in' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_out','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_out' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_in','records.config','INT 115') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_in' and config_file = 'records.config' and value = 'INT 115') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_out','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_out' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_lifetime','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_lifetime' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.no_dns_just_forward_to_parent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.no_dns_just_forward_to_parent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.normalize_ae_gzip','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.normalize_ae_gzip' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.origin_server_pipeline','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.origin_server_pipeline' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.fail_threshold','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.fail_threshold' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.file','records.config','STRING parent.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.file' and config_file = 'records.config' and value = 'STRING parent.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.retry_time','records.config','INT 60') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.retry_time' and config_file = 'records.config' and value = 'INT 60') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy_routing_enable','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy_routing_enable' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.total_connect_attempts','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.total_connect_attempts' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.post_connect_attempts_timeout','records.config','INT 1800') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.post_connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 1800') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.push_method_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.push_method_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_default_redirect','records.config','STRING http://www.example.com/') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_default_redirect' and config_file = 'records.config' and value = 'STRING http://www.example.com/') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_filter','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_filter' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_format_redirect','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_format_redirect' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.response_server_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.response_server_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.send_http11_requests','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.send_http11_requests' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.server_ports','records.config','STRING 80 80:ipv6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.server_ports' and config_file = 'records.config' and value = 'STRING 80 80:ipv6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.share_server_sessions','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.share_server_sessions' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.slow.log.threshold','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.slow.log.threshold' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_active_timeout_in','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_active_timeout_in' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_active_timeout_out','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_active_timeout_out' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_no_activity_timeout_in','records.config','INT 30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_no_activity_timeout_in' and config_file = 'records.config' and value = 'INT 30') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_no_activity_timeout_out','records.config','INT 30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_no_activity_timeout_out' and config_file = 'records.config' and value = 'INT 30') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.uncacheable_requests_bypass_parent','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.uncacheable_requests_bypass_parent' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.user_agent_pipeline','records.config','INT 8') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.user_agent_pipeline' and config_file = 'records.config' and value = 'INT 8') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.icp_interface','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.icp_interface' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.icp_port','records.config','INT 3130') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.icp_port' and config_file = 'records.config' and value = 'INT 3130') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.multicast_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.multicast_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.query_timeout','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.query_timeout' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.auto_delete_rolled_files','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.auto_delete_rolled_files' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_host','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_host' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_host_tagged','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_host_tagged' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_port','records.config','INT 8085') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_port' and config_file = 'records.config' and value = 'INT 8085') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_retry_sec','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_retry_sec' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_secret','records.config','STRING foobar') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_secret' and config_file = 'records.config' and value = 'STRING foobar') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_header','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_header' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_is_ascii','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_is_ascii' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_name','records.config','STRING common') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_name' and config_file = 'records.config' and value = 'STRING common') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.custom_logs_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.custom_logs_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_header','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_header' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_is_ascii','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_is_ascii' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_name','records.config','STRING extended2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_name' and config_file = 'records.config' and value = 'STRING extended2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended_log_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended_log_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended_log_header','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended_log_header' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended_log_is_ascii','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended_log_is_ascii' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT
<TRUNCATED>
[27/27] incubator-trafficcontrol git commit: This closes #537.
Posted by da...@apache.org.
This closes #537.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9bc5f048
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9bc5f048
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9bc5f048
Branch: refs/heads/master
Commit: 9bc5f048ee6602b1280b35f47a6777ceb7ae5e75
Parents: a032e47
Author: Dan Kirkwood <da...@gmail.com>
Authored: Tue May 9 18:29:31 2017 +0000
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:29:31 2017 +0000
----------------------------------------------------------------------
----------------------------------------------------------------------
[05/27] incubator-trafficcontrol git commit: made changes to support
seeds cleanup
Posted by da...@apache.org.
made changes to support seeds cleanup
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d3bbaec4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d3bbaec4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d3bbaec4
Branch: refs/heads/master
Commit: d3bbaec410536737ab7d3e6d3ed6bfa09444806a
Parents: bd603e8
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 10:58:58 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/_postinstall | 357 ++++++++++++++++---------
traffic_ops/install/bin/postinstall | 4 +-
traffic_ops/install/lib/InstallUtils.pm | 6 +-
traffic_ops/install/lib/ProfileCleanup.pm | 254 ------------------
4 files changed, 232 insertions(+), 389 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d3bbaec4/traffic_ops/install/bin/_postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/_postinstall b/traffic_ops/install/bin/_postinstall
index 66ecf7a..3c1b8c0 100755
--- a/traffic_ops/install/bin/_postinstall
+++ b/traffic_ops/install/bin/_postinstall
@@ -17,7 +17,8 @@
use lib qw(/opt/traffic_ops/install/lib /opt/traffic_ops/app/lib /opt/traffic_ops/app/local/lib/perl5);
$ENV{PERL5LIB} = "/opt/traffic_ops/install/lib:/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5:$ENV{PERL5LIB}";
-$ENV{PATH} = "/usr/local/bin:/opt/traffic_ops/install/bin:$ENV{PATH}";
+$ENV{PATH} = "/usr/bin:/opt/traffic_ops/go/bin:/usr/local/go/bin:/opt/traffic_ops/install/bin:$ENV{PATH}";
+$ENV{GOPATH} = "/opt/traffic_ops/go";
use strict;
use warnings;
@@ -34,7 +35,6 @@ use Getopt::Long;
use InstallUtils qw{ :all };
use GenerateCert qw{ :all };
-use ProfileCleanup qw{ :all };
# paths of the output configuration files
my $databaseConfFile = "/opt/traffic_ops/app/conf/production/database.conf";
@@ -64,15 +64,9 @@ my $debug = 1;
# log file for cpan output
my $cpanLogFile = "/var/log/traffic_ops/cpan.log";
-# whether or not to reconfigure traffic ops
-my $reconfigure = 1;
-
# used to check for .reconfigure_defaults file for backwards compatability
my $reconfigure_defaults = "/opt/traffic_ops/.reconfigure_defaults";
-# old way of reconfiguring postinstall - only here to check for file and let user know it is deprecated
-my $reconfigure_file = "/opt/traffic_ops/.reconfigure";
-
# maximum size the uncompressed log file should be before rotating it - rotating it copies the current log
# file to the same name appended with .bkp replacing the old backup if any is there
my $maxLogSize = 10000000; #bytes
@@ -405,11 +399,11 @@ sub getDefaults {
$dbConfFile => [
{
"Database server root (admin) user" => "postgres",
- "config_var" => "dbAdminUser"
+ "config_var" => "pgUser"
},
{
"Password for database server admin" => "",
- "config_var" => "dbAdminPw",
+ "config_var" => "pgPassword",
"hidden" => "true"
},
{
@@ -508,20 +502,20 @@ sub getDefaults {
"config_var" => "tm.url"
},
{
- "Human-readable CDN Name. (No whitespace, please)" => "kabletown_cdn",
- "config_var" => "cdn_name"
+ "Traffic Ops Instance Name" => "Traffic Ops CDN",
+ "config_var" => "tm.instance_name"
},
{
- "Health Polling Interval (milliseconds)" => "8000",
- "config_var" => "health_polling_int"
+ "Traffic Ops Tool Name" => "Traffic Ops",
+ "config_var" => "tm.toolname"
},
{
- "DNS sub-domain for which your CDN is authoritative" => "cdn1.kabletown.net",
- "config_var" => "dns_subdomain"
+ "Human-readable CDN Name. (No whitespace, please)" => "kabletown_cdn",
+ "config_var" => "cdn_name"
},
{
- "TLD SOA admin" => "traffic_ops",
- "config_var" => "soa_admin"
+ "DNS sub-domain for which your CDN is authoritative" => "cdn1.kabletown.net",
+ "config_var" => "dns_subdomain"
},
{
"TrafficServer Drive Prefix" => "/dev/sd",
@@ -534,20 +528,7 @@ sub getDefaults {
{
"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"
}
-
]
};
}
@@ -557,50 +538,74 @@ sub getDefaults {
# todbconf: The database configuration to be used
# opensslconf: The openssl configuration if any
-sub setupDatabase {
- my $todbconf = shift;
- my $opensslconf = shift;
- my $setupMaxmind = shift;
- my $databaseConfFile = shift;
+sub setupDatabaseData {
+ my $dbh = shift;
+ my $adminconf = shift;
+ my $paramconf = shift;
+ InstallUtils::logger( "paramconf " . Dumper($paramconf), "info" );
- my $dbconf = InstallUtils::readJson($databaseConfFile);
+ my $result;
- # Check if the Postgres db is used and set the admin database to be "postgres"
- my $dbName = $dbconf->{type};
- if ( $dbconf->{type} eq "Pg" ) {
- $dbName = "postgres";
- }
+ my $q = <<"QUERY";
+ select exists(select 1 from pg_tables where schemaname = 'public' and tablename = 'tm_user')
+QUERY
- my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbName, $dbconf->{hostname}, $dbconf->{port} );
- my $dbh = DBI->connect( $dsn, $todbconf->{"dbAdminUser"}, $todbconf->{"dbAdminPw"} );
- if ($dbh) {
- InstallUtils::logger( "Database connection succeeded", "info" );
+ my $stmt = $dbh->prepare($q);
+ $stmt->execute();
- # Success!
- $dbh->disconnect();
+ InstallUtils::logger( "Setting up the database data", "info" );
+ my $tables_found;
+ while ( my $row = $stmt->fetch() ) {
+ $tables_found = $row->[0];
}
- else {
- InstallUtils::logger( "Error connecting to database", "error" );
- exit(-1);
+ if ($tables_found) {
+ InstallUtils::logger( "Found existing tables skipping table creation", "info" );
+ } else {
+ invoke_db_admin_pl("load_schema");
}
+ invoke_db_admin_pl("migrate");
+ invoke_db_admin_pl("seed");
- InstallUtils::logger( "Setting up database", "info" );
- $ENV{PGUSER} = $todbconf->{"dbAdminUser"};
- $ENV{PGPASSWORD} = $todbconf->{"dbAdminPw"};
- chdir("/opt/traffic_ops/app");
- my $result = InstallUtils::execCommand( "/usr/bin/perl", "db/admin.pl", "--env=production", "reset" );
+ # Skip the insert if the admin 'username' is already there.
+ my $sha1_passwd = sha1_hex( $adminconf->{"password"} );
- if ( $result == 0 ) {
- $result = InstallUtils::execCommand( "/usr/bin/perl", "db/admin.pl", "--env=production", "seed" );
- }
+ my $insert_admin = <<"ADMIN";
+ insert into tm_user (username, role, local_passwd)
+ values ("$adminconf->{"username"}",
+ (select id from role where name = 'admin'),
+ "$sha1_passwd",
+ "$sha1_passwd" ))
+ ON CONFLICT (profile, parameter) DO NOTHING ON CONFLICT (username) DO NOTHING;"
+ADMIN
+ $dbh->do($insert_admin);
+
+ insert_parameters($dbh, $paramconf);
+ insert_profiles($dbh, $paramconf);
+
+
+}
+
+sub invoke_db_admin_pl {
+ my $action = shift;
+
+ chdir("/opt/traffic_ops/app");
+ my $result = InstallUtils::execCommand( "/usr/bin/perl", "db/admin.pl", "--env=production", $action );
if ( $result != 0 ) {
- errorOut("Database initialization failed");
+ errorOut("Database $action failed");
}
else {
- InstallUtils::logger( "Database initialization succeeded", "info" );
+ InstallUtils::logger( "Database $action succeeded", "info" );
}
+ return $result;
+}
+
+sub setupMaxMind {
+ my $setupMaxmind = shift;
+
+ my $result;
+
if ( $setupMaxmind =~ /^y(?:es)?/ ) {
InstallUtils::logger( "Downloading Maxmind data", "info" );
chdir("/opt/traffic_ops/app/public/routing");
@@ -608,17 +613,22 @@ sub setupDatabase {
if ( $result != 0 ) {
InstallUtils::logger( "Failed to download MaxMind data", "error" );
}
+
+ $result = InstallUtils::execCommand("/usr/bin/wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz");
+ if ( $result != 0 ) {
+ InstallUtils::logger( "Failed to download MaxMind data", "error" );
+ }
}
else {
InstallUtils::logger("Not downloading Maxmind data");
}
- chdir("/opt/traffic_ops/app/public/routing");
- InstallUtils::logger( "Copying coverage zone file to public dir", "info" );
- $result = InstallUtils::execCommand("/bin/mv /opt/traffic_ops/app/public/coverage-zone.json .");
- if ( $result != 0 ) {
- InstallUtils::logger( "Failed to copy coverage zone file", "error" );
- }
+}
+
+sub setupCertificates {
+ my $opensslconf = shift;
+
+ my $result;
if ( lc $opensslconf->{"genCert"} =~ /^y(?:es)?/ ) {
if ( -x "/usr/bin/openssl" ) {
@@ -643,11 +653,144 @@ sub setupDatabase {
}
}
+#------------------------------------
+sub connect_to_database {
+ my $databaseConfFile = shift;
+ my $todbconf = shift;
+
+ my $dbconf = InstallUtils::readJson($databaseConfFile);
+
+ # Check if the Postgres db is used and set the admin database to be "postgres"
+ my $dbName = $dbconf->{type};
+ if ( $dbconf->{type} eq "Pg" ) {
+ $dbName = "traffic_ops";
+ }
+
+ $ENV{PGUSER} = $todbconf->{"pgUser"};
+ $ENV{PGPASSWORD} = $todbconf->{"pgPassword"};
+
+ my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbName, $dbconf->{hostname}, $dbconf->{port} );
+ my $dbh = DBI->connect( $dsn, $todbconf->{"pgUser"}, $todbconf->{"pgPassword"} );
+ if ($dbh) {
+ InstallUtils::logger( "Database connection succeeded", "info" );
+ }
+ else {
+ InstallUtils::logger( "Error connecting to database", "error" );
+ exit(-1);
+ }
+ return $dbh;
+
+}
+
+#------------------------------------
+sub insert_parameters {
+ my $dbh = shift;
+ my $paramconf = shift;
+
+ InstallUtils::logger( "=========== Setting up parameters", "info" );
+
+ # Enable multiple inserts into one commit
+ $dbh->{pg_server_prepare} = 0;
+
+ my $insert_stmt = <<"INSERTS";
+
+ -- global parameters
+ insert into parameter (name, config_file, value)
+ values ('tm.url', 'global', '$paramconf->{"tm.url"}')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ insert into parameter (name, config_file, value)
+ values ('tm.instance_name', 'global', '$paramconf->{"tm.instance_name"}')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ insert into parameter (name, config_file, value)
+ values ('tm.toolname', 'global', '$paramconf->{"tm.toolname"}')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ insert into parameter (name, config_file, value)
+ values ('tm.infourl', 'global', '$paramconf->{"tm.url"}/doc')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ -- CRConfig.json parameters
+ insert into parameter (name, config_file, value)
+ values ('geolocation.polling.url', 'CRConfig.json', '$paramconf->{"tm.url"}/routing/GeoLite2-City.mmdb.gz')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ insert into parameter (name, config_file, value)
+ values ('geolocation6.polling.url', 'CRConfig.json', '$paramconf->{"tm.url"}/routing/GeoLiteCityv6.dat.gz')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ -- RAM Prefix
+ insert into parameter (name, config_file, value)
+ values ('RAM_Drive_Prefix', 'storage.config', '$paramconf->{"ram_drive_prefix"}')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+ insert into parameter (name, config_file, value)
+ values ('RAM_Drive_Letters', 'storage.config', '$paramconf->{"ram_drive_letters"}')
+ ON CONFLICT (name, config_file, value) DO NOTHING;
+
+
+INSERTS
+ doInsert($dbh, $insert_stmt);
+}
+
+#------------------------------------
+sub insert_profiles {
+ my $dbh = shift;
+ my $paramconf = shift;
+
+ InstallUtils::logger( "\n=========== Setting up profiles", "info" );
+ my $insert_stmt = <<"INSERTS";
+
+ -- global parameters
+ insert into profile (name, description, type)
+ values ('GLOBAL', 'Global Traffic Ops profile, DO NOT DELETE', 'UNK_PROFILE')
+ ON CONFLICT (name) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.url' and config_file = 'global' and value = '$paramconf->{"tm.url"}') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.instance_name' and config_file = 'global' and value = '$paramconf->{"tm.instance_name"}') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.toolname' and config_file = 'global' and value = '$paramconf->{"tm.toolname"}') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.infourl' and config_file = 'global' and value = '$paramconf->{"tm.url"}/doc') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'geolocation.polling.url' and config_file = 'CRConfig.json' and value = 'https://$paramconf->{"dns_subdomain"}/routing/GeoLite2-City.mmdb.gz') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+ insert into profile_parameter (profile, parameter)
+ values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'geolocation6.polling.url' and config_file = 'CRConfig.json' and value = 'https://$paramconf->{"dns_subdomain"}/routing/GeoLiteCityv6.dat.gz') )
+ ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERTS
+ doInsert($dbh, $insert_stmt);
+}
+
+#------------------------------------
+sub doInsert {
+ my $dbh = shift;
+ my $insert_stmt = shift;
+
+ InstallUtils::logger( "\n" . $insert_stmt, "info" );
+ my $stmt = $dbh->prepare($insert_stmt);
+ $stmt->execute();
+}
+
+
+
# -cfile - Input File: The input config file used to ask and answer questions
# -a - Automatic mode: If there are questions in the config file which do not have answers, the script
# will look to the defaults for the answer. If the answer is not in the defaults
# the script will exit
-# -r - Reconfigure: Whether or not to reconfigure the database and check perl dependencies - This will recreate the database
# -defaults - Defaults: Writes out a configuration file with defaults which can be used as input
# -debug - Debug Mode: More output to the terminal
# -h - Help: Basic command line help menu
@@ -661,7 +804,6 @@ sub main {
GetOptions(
"cfile=s" => \$inputFile,
"automatic" => \$automatic,
- "reconfigure" => \$reconfigure,
"defaults" => \$dumpDefaults,
"debug" => \$debug,
"help" => \$help
@@ -695,21 +837,12 @@ sub main {
InstallUtils::logger( "Running in automatic mode", "info" );
}
- # check if the reconfigure_file is present on the system - if it is let the user know its deprecated
- # and exit with an error
- if ( -f $reconfigure_file ) {
- InstallUtils::logger( "$reconfigure_file file is depreprecated - please remove and rerun postinstall", "error" );
- return;
- }
-
if ($dumpDefaults) {
InstallUtils::logger( "Writing default configuration file to $outputConfigFile", "info" );
InstallUtils::writeJson( $outputConfigFile, $defaultInputs );
return;
}
- InstallUtils::logger( "Postinstall " . ( $reconfigure ? "" : "not " ) . "in reconfigure mode", "info" );
-
InstallUtils::rotateLog($cpanLogFile);
if ( -s $logFile > $maxLogSize ) {
@@ -741,24 +874,13 @@ sub main {
# check the input config file against the defaults to check for missing questions
sanityCheckConfig($userInput) if ( $inputFile ne "" );
- # if reconfigure is set then rebuild the perl deps
- if ($reconfigure) {
- chdir("/opt/traffic_ops/install/bin");
- my $rc = InstallUtils::execCommand( "./download_web_deps", "-i" );
- if ( $rc != 0 ) {
- errorOut("Failed to install Traffic Ops Web dependencies, check the console output and rerun postinstall once you've resolved the error");
- }
- }
- else {
- chdir("/opt/traffic_ops/install/bin");
- my $rc = InstallUtils::execCommand( "./download_web_deps", "-i" );
- if ( $rc != 0 ) {
- errorOut("Failed to install Traffic Ops Web dependencies, check the console output and rerun postinstall once you've resolved the error");
- }
+ chdir("/opt/traffic_ops/install/bin");
+ my $rc = InstallUtils::execCommand( "./download_web_deps", "-i" );
+ if ( $rc != 0 ) {
+ errorOut("Failed to install Traffic Ops Web dependencies, check the console output and rerun postinstall once you've resolved the error");
}
# The generator functions handle checking input/default/automatic mode
-
# todbconf will be used later when setting up the database
my $todbconf = generateDbConf( $userInput, $databaseConfFile, $dbConfFile );
generateCdnConf( $userInput, $cdnConfFile );
@@ -772,49 +894,24 @@ sub main {
InstallUtils::writeJson( $post_install_cfg, {} );
}
- # if reconfigure is set then setup the database
- if ($reconfigure) {
- setupDatabase( $todbconf, $opensslconf, $todbconf->{"maxmind"}, $databaseConfFile );
+ setupMaxMind( $todbconf->{"maxmind"} );
+ setupCertificates( $opensslconf );
- ## Create the tm_user
- my $dbconf = InstallUtils::readJson($databaseConfFile);
- my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbconf->{dbname}, $dbconf->{hostname}, $dbconf->{port} );
- my $dbh = DBI->connect( $dsn, $todbconf->{"dbAdminUser"}, $todbconf->{"dbAdminPw"} );
- my $sha1_passwd = sha1_hex( $adminconf->{"password"} );
- my $sub_string = sprintf( "('%s', 4, '%s')", $adminconf->{"username"}, $sha1_passwd, $sha1_passwd );
+ my $dbh = connect_to_database($databaseConfFile, $todbconf);
+ setupDatabaseData( $dbh, $adminconf, $paramconf );
- $dbh->do("insert into tm_user (username, role, local_passwd) values $sub_string");
+ InstallUtils::logger("Starting Traffic Ops", "info" );
+ InstallUtils::execCommand("/sbin/service traffic_ops restart");
- }
-
- InstallUtils::logger( "Starting Traffic Ops", "info" );
- InstallUtils::execCommand("/sbin/service traffic_ops start");
+ InstallUtils::logger("Waiting for Traffic Ops to restart", "info" );
- InstallUtils::logger( "Waiting for Traffic Ops to start", "info" );
-
- if ( -f $post_install_cfg ) {
- $parameters = InstallUtils::readJson($post_install_cfg);
- }
-
- if ( !ProfileCleanup::profiles_exist( $adminconf, $paramconf->{"tm.url"}, $parameters, $reconfigure_defaults, $reconfigure ) ) {
- InstallUtils::logger( "Creating default profiles...", "info" );
- ProfileCleanup::replace_profile_templates( $paramconf, $adminconf, $post_install_cfg, $parameters, $profileDir );
- ProfileCleanup::import_profiles( $paramconf->{"tm.url"}, $adminconf, $profileDir );
-
- # call again to create $reconfigure_defaults file if import was successful
- ProfileCleanup::profiles_exist( $adminconf, $paramconf->{"tm.url"}, $parameters, $reconfigure_defaults, $reconfigure );
- }
- else {
- InstallUtils::logger( "Not creating default profiles", "info" );
- }
-
- if ( $custom_profile =~ /^y(?:es)?/ ) {
- ProfileCleanup::add_custom_profiles( $custom_profile_dir, $adminconf, $parameters->{"tm.url"} );
- }
+ InstallUtils::logger("Success! Postinstall complete.");
- InstallUtils::logger("Postinstall complete");
+ #InstallUtils::logger("Zipping up $logFile to $logFile.gz");
+ #InstallUtils::execCommand( "/bin/gzip", "$logFile" );
- InstallUtils::execCommand( "/bin/gzip", "$logFile" );
+ # Success!
+ $dbh->disconnect();
}
main;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d3bbaec4/traffic_ops/install/bin/postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall b/traffic_ops/install/bin/postinstall
index 4c1b035..aee1f78 100755
--- a/traffic_ops/install/bin/postinstall
+++ b/traffic_ops/install/bin/postinstall
@@ -18,7 +18,7 @@
umask 022
# go and git are required, but don't want to stomp on those if already installed
-for p in git go; do
+for p in git /usr/local/go/bin/go /opt/traffic_ops/go/bin/goose; do
type $p >/dev/null 2>&1 || { echo >&2 "postinstall requires $p but it's not installed. Aborting."; exit 1; }
done
@@ -36,7 +36,7 @@ cd /opt/traffic_ops/app
export POSTGRES_HOME=${POSTGRES_HOME:-/usr/pgsql-9.6}
/usr/local/bin/carton
-export GOPATH=${GOPATH:-/usr/local}
+export GOPATH=${GOPATH:-/usr/local/go/bin}
go get bitbucket.org/liamstask/goose/cmd/goose
export PERL5LIB=/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d3bbaec4/traffic_ops/install/lib/InstallUtils.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/InstallUtils.pm b/traffic_ops/install/lib/InstallUtils.pm
index 040a8e9..22f53b8 100644
--- a/traffic_ops/install/lib/InstallUtils.pm
+++ b/traffic_ops/install/lib/InstallUtils.pm
@@ -199,7 +199,7 @@ sub trim {
sub readJson {
my $file = shift;
- open( my $fh, '<', $file ) or die("open(): $!");
+ open( my $fh, '<', $file ) or die("open($file): $!");
local $/; # slurp mode
my $text = <$fh>;
undef $fh;
@@ -208,7 +208,7 @@ sub readJson {
sub writeJson {
my $file = shift;
- open( my $fh, '>', $file ) or die("open(): $!");
+ open( my $fh, '>', $file ) or die("open($file): $!");
logger( "Writing json to $file", "info" );
foreach my $data (@_) {
my $json_text = JSON->new->utf8->pretty->encode($data);
@@ -221,7 +221,7 @@ sub writePerl {
my $file = shift;
my $data = shift;
- open( my $fh, '>', $file ) or die("open(): $!");
+ open( my $fh, '>', $file ) or die("open($file): $!");
my $dumper = Data::Dumper->new( [$data] );
# print without var names and with simple indentation
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d3bbaec4/traffic_ops/install/lib/ProfileCleanup.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/ProfileCleanup.pm b/traffic_ops/install/lib/ProfileCleanup.pm
deleted file mode 100644
index f9ffa01..0000000
--- a/traffic_ops/install/lib/ProfileCleanup.pm
+++ /dev/null
@@ -1,254 +0,0 @@
-#!/usr/bin/perl
-
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-package ProfileCleanup;
-
-use warnings;
-use strict;
-
-use InstallUtils qw{ :all };
-use WWW::Curl::Easy;
-use LWP::UserAgent;
-
-use base qw{ Exporter };
-our @EXPORT_OK = qw{ replace_profile_templates import_profiles profiles_exist add_custom_profiles };
-our %EXPORT_TAGS = ( all => \@EXPORT_OK );
-
-sub profile_replace {
- my $profile = shift;
- my $adminconf = shift;
- my $parameters = shift;
-
- my $profile_bak = $profile . ".bak";
- InstallUtils::logger( "Replacing parameters in profile: $profile", "info" );
- rename( $profile, $profile_bak ) or die("rename(): $!");
- open( my $fh, '<', $profile_bak ) or die("open(): $!");
- open( my $ofh, '>', $profile ) or die("open(): $!");
- while (<$fh>) {
- s/{{.TmUrl}}/$parameters->{'tm.url'}/g;
- s/{{.TmInfoUrl}}/$parameters->{"tminfo.url"}/g;
- s/{{.TmInstanceName}}/$parameters->{"cdnname"}/g;
- s/{{.GeolocationPollingUrl}}/$parameters->{"geolocation.polling.url"}/g;
- s/{{.Geolocation6PollingUrl}}/$parameters->{"geolocation6.polling.url"}/g;
- s/{{.TmUrl}}/$parameters->{'tm.url'}/g;
- s/{{.TmToolName}}/Traffic Ops/g;
- s/{{.HealthPollingInterval}}/$parameters->{"health.polling.interval"}/g;
- s/{{.CoveragezonePollingUrl}}/$parameters->{"coveragezone.polling.url"}/g;
- s/{{.DomainName}}/$parameters->{"domainname"}/g;
- s/{{.TldSoaAdmin}}/$parameters->{"tld.soa.admin"}/g;
- s/{{.DrivePrefix}}/$parameters->{"Drive_Prefix"}/g;
- s/{{.HealthThresholdLoadavg}}/$parameters->{"health.threshold.loadavg"}/g;
- s/{{.HealthThresholdAvailableBandwidthInKbps}}/$parameters->{"health.threshold.availableBandwidthInKbps"}/g;
- s/{{.RAMDrivePrefix}}/$parameters->{"RAM_Drive_Prefix"}/g;
- s/{{.RAMDriveLetters}}/$parameters->{"RAM_Drive_Letters"}/g;
- s/{{.HealthConnectionTimeout}}/$parameters->{"health.connection.timeout"}/g;
- s#{{.CronOrtSyncds}}#*/15 * * * * root /opt/ort/traffic_ops_ort.pl syncds warn $parameters->{'tm.url'} $adminconf->{tmAdminUser}:$adminconf->{tmAdminPw} > /tmp/ort/syncds.log 2>&1#g;
- print $ofh $_;
- }
- close $fh;
- close $ofh;
- unlink $profile_bak;
-}
-
-sub replace_profile_templates {
- my $conf = shift;
- my $adminconf = shift;
- my $post_install_cfg = shift;
- my $parameters = shift;
- my $profileDir = shift;
-
- $parameters->{'tm.url'} = $conf->{"tm.url"};
- $parameters->{"tminfo.url"} = "$parameters->{'tm.url'}/info";
- $parameters->{"cdnname"} = $conf->{"cdn_name"};
- $parameters->{"geolocation.polling.url"} = "$parameters->{'tm.url'}/routing/GeoIP2-City.mmdb.gz";
- $parameters->{"geolocation6.polling.url"} = "$parameters->{'tm.url'}/routing/GeoIP2-Cityv6.mmdb.gz";
- $parameters->{"health.polling.interval"} = $conf->{"health_polling_int"};
- $parameters->{"coveragezone.polling.url"} = "$parameters->{'tm.url'}/routing/coverage-zone.json";
- $parameters->{"domainname"} = $conf->{"dns_subdomain"};
- $parameters->{"tld.soa.admin"} = $conf->{"soa_admin"};
- $parameters->{"Drive_Prefix"} = $conf->{"driver_prefix"};
- $parameters->{"RAM_Drive_Prefix"} = $conf->{"ram_drive_prefix"};
- $parameters->{"RAM_Drive_Letters"} = $conf->{"ram_drive_letters"};
- $parameters->{"health.threshold.loadavg"} = $conf->{"health_thresh_load_avg"};
- $parameters->{"health.threshold.availableBandwidthInKbps"} = substr( $conf->{"health_thresh_kbps"}, 0, 1 ) eq ">" ? "" : ">" . $conf->{"health_thresh_kbps"};
- $parameters->{"health.connection.timeout"} = $conf->{"health_connect_timeout"};
-
- profile_replace( $profileDir . "profile.global.traffic_ops", $adminconf, $parameters );
- profile_replace( $profileDir . "profile.traffic_monitor.traffic_ops", $adminconf, $parameters );
- profile_replace( $profileDir . "profile.traffic_router.traffic_ops", $adminconf, $parameters );
- profile_replace( $profileDir . "profile.trafficserver_edge.traffic_ops", $adminconf, $parameters );
- profile_replace( $profileDir . "profile.trafficserver_mid.traffic_ops", $adminconf, $parameters );
- writeJson( $post_install_cfg, $parameters );
-}
-
-# Takes the Traffic Ops URI, user, and password.
-# Returns the cookie, or the empty string on error
-sub get_traffic_ops_cookie {
- my ( $uri, $user, $pass ) = @_;
-
- my $loginUri = "/api/1.2/user/login";
-
- my $curl = WWW::Curl::Easy->new;
- my $response_body = "";
- open( my $fileb, ">", \$response_body );
- my $loginData = JSON::encode_json( { u => $user, p => $pass } );
- $curl->setopt( WWW::Curl::Easy::CURLOPT_URL, $uri . $loginUri );
- $curl->setopt( WWW::Curl::Easy::CURLOPT_SSL_VERIFYPEER, 0 );
- $curl->setopt( WWW::Curl::Easy::CURLOPT_HEADER, 1 ); # include header in response
- $curl->setopt( WWW::Curl::Easy::CURLOPT_NOBODY, 1 ); # disclude body in response
- $curl->setopt( WWW::Curl::Easy::CURLOPT_POST, 1 );
- $curl->setopt( WWW::Curl::Easy::CURLOPT_POSTFIELDS, $loginData );
- $curl->setopt( WWW::Curl::Easy::CURLOPT_WRITEDATA, $fileb ); # put response in this var
- $curl->perform();
-
- my $cookie = $response_body;
- if ( $cookie =~ /mojolicious=(.*); expires/ ) {
- $cookie = $1;
- }
- else {
- $cookie = "";
- }
- return $cookie;
-}
-
-# Takes the filename of a Traffic Ops (TO) profile to import, the TO URI, and the TO login cookie
-sub profile_import_single {
- my ( $profileFilename, $uri, $trafficOpsCookie ) = @_;
- InstallUtils::logger( "Importing Profiles with: " . "curl -v -k -X POST -H \"Cookie: mojolicious=$trafficOpsCookie\" -F \"filename=$profileFilename\" -F \"profile_to_import=\@$profileFilename\" $uri/profile/doImport", "info" );
- my $rc = InstallUtils::execCommand("curl -v -k -X POST -H \"Cookie: mojolicious=$trafficOpsCookie\" -F \"filename=$profileFilename\" -F \"profile_to_import=\@$profileFilename\" $uri/profile/doImport");
- if ( $rc != 0 ) {
- InstallUtils::logger( "Failed to import Traffic Ops profile, check the console output and rerun postinstall once you've resolved the error", "error" );
- }
-}
-
-sub import_profiles {
- my $toUri = shift;
- my $adminconf = shift;
- my $profileDir = shift;
-
- InstallUtils::logger( "Importing profiles...", "info" );
-
- my $toUser = $adminconf->{"username"};
- my $toPass = $adminconf->{"password"};
-
- my $toCookie = get_traffic_ops_cookie( $toUri, $toUser, $toPass );
-
- InstallUtils::logger( "Got cookie: " . $toCookie, "info" );
-
- # \todo use an array?
- InstallUtils::logger( "Importing Global profile...", "info" );
- profile_import_single( $profileDir . "profile.global.traffic_ops", $toUri, $toCookie );
- InstallUtils::logger( "Importing Traffic Monitor profile...", "info" );
- profile_import_single( $profileDir . "profile.traffic_monitor.traffic_ops", $toUri, $toCookie );
- InstallUtils::logger( "Importing Traffic Router profile...", "info" );
- profile_import_single( $profileDir . "profile.traffic_router.traffic_ops", $toUri, $toCookie );
- InstallUtils::logger( "Importing TrafficServer Edge profile...", "info" );
- profile_import_single( $profileDir . "profile.trafficserver_edge.traffic_ops", $toUri, $toCookie );
- InstallUtils::logger( "Importing TrafficServer Mid profile...", "info" );
- profile_import_single( $profileDir . "profile.trafficserver_mid.traffic_ops", $toUri, $toCookie );
- InstallUtils::logger( "Finished Importing Profiles.", "info" );
-}
-
-sub profiles_exist {
- my $config = shift;
- my $tmurl = shift;
- my $parameters = shift;
- my $reconfigure_defaults = shift;
- my $reconfigure = shift;
-
- if ( -f $reconfigure_defaults ) {
- InstallUtils::logger( "Default profiles were previously created. Remove " . $reconfigure_defaults . " to create again", "warn" );
- return 1;
- }
-
- $parameters->{'tm.url'} = $tmurl;
-
- InstallUtils::logger( "Checking profiles at $tmurl using username " . $config->{"username"}, "info" );
-
- my $uri = $parameters->{'tm.url'};
-
- # This module gets installed during BuildPerlDeps portion, so require here when it's available.
- require 'LWP/Protocol/https.pm';
- my $toCookie = get_traffic_ops_cookie( $parameters->{'tm.url'}, $config->{"username"}, $config->{"password"} );
-
- my $profileEndpoint = "/api/1.2/profiles.json";
-
- my $ua = LWP::UserAgent->new;
- $ua->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0x00 );
- my $req = HTTP::Request->new( GET => $uri . $profileEndpoint );
- $req->header( 'Cookie' => "mojolicious=" . $toCookie );
- my $resp = $ua->request($req);
-
- if ( !$resp->is_success ) {
- InstallUtils::logger( "Error checking if profiles exist: " . $resp->status_line, "error" );
- return 1; # return true, so we don't attempt to create profiles
- }
- my $message = $resp->decoded_content;
-
- my $profiles = JSON->new->utf8->decode($message);
- if ( ( !defined $profiles->{"response"} )
- || ( ref $profiles->{"response"} ne 'ARRAY' ) )
- {
- InstallUtils::logger( "Error checking if profiles exist: invalid JSON: $message", "error" );
- return 1; # return true, so we don't attempt to create profiles
- }
-
- my $num_profiles = scalar( @{ $profiles->{"response"} } );
- InstallUtils::logger( "Existing Profile Count: $num_profiles", "info" );
-
- my %initial_profiles = (
- "INFLUXDB" => 1,
- "RIAK_ALL" => 1,
- "TRAFFIC_STATS" => 1
- );
-
- my $profiles_response = $profiles->{"response"};
- foreach my $profile (@$profiles_response) {
- if ( !exists $initial_profiles{ $profile->{"name"} } ) {
- InstallUtils::logger( "Found existing profile (" . $profile->{"name"} . ")", "info" );
- open( my $reconfigure_defaults, '>', $reconfigure ) or die("Failed to open() $reconfigure_defaults: $!");
- close($reconfigure_defaults);
- return 1;
- }
- }
- return 0;
-}
-
-sub add_custom_profiles {
- my $custom_profile_dir = shift;
- my $adminconf = shift;
- my $toUri = shift;
-
- return if ( !-e $custom_profile_dir );
-
- opendir( DH, $custom_profile_dir ) || return;
- my @profiles = readdir(DH);
- closedir(DH);
- @profiles = grep( /^profile\..*\.traffic_ops$/, @profiles );
-
- return if ( scalar @profiles == 0 );
-
- my $toUser = $adminconf->{tmAdminUser};
- my $toPass = $adminconf->{tmAdminPw};
- my $toCookie = get_traffic_ops_cookie( $toUri, $toUser, $toPass );
-
- foreach my $profile (@profiles) {
- print "\nimport profile " . $custom_profile_dir . $profile . "\n\n";
- profile_import_single( $custom_profile_dir . $profile, $toUri, $toCookie );
- }
-}
-
-1;
[08/27] incubator-trafficcontrol git commit: moved the gopath to
/opt/traffic_ops/go
Posted by da...@apache.org.
moved the gopath to /opt/traffic_ops/go
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/16b300c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/16b300c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/16b300c9
Branch: refs/heads/master
Commit: 16b300c9d57998502fcd35a7ca6b0dd37e743765
Parents: a8aedf6
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:10:15 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/postinstall | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/16b300c9/traffic_ops/install/bin/postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall b/traffic_ops/install/bin/postinstall
index aee1f78..e9a4c55 100755
--- a/traffic_ops/install/bin/postinstall
+++ b/traffic_ops/install/bin/postinstall
@@ -36,7 +36,8 @@ cd /opt/traffic_ops/app
export POSTGRES_HOME=${POSTGRES_HOME:-/usr/pgsql-9.6}
/usr/local/bin/carton
-export GOPATH=${GOPATH:-/usr/local/go/bin}
+mkdir -p /opt/traffic_ops/go
+export GOPATH=${GOPATH:-/opt/traffic_ops/go}
go get bitbucket.org/liamstask/goose/cmd/goose
export PERL5LIB=/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5
[13/27] incubator-trafficcontrol git commit: removed unused var
Posted by da...@apache.org.
removed unused var
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/f129bf61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/f129bf61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/f129bf61
Branch: refs/heads/master
Commit: f129bf61b0473875490314547f356256bcc6db5d
Parents: 1a296ab
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri May 5 08:37:03 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/_postinstall | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/f129bf61/traffic_ops/install/bin/_postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/_postinstall b/traffic_ops/install/bin/_postinstall
index 77d28f3..37e47e3 100755
--- a/traffic_ops/install/bin/_postinstall
+++ b/traffic_ops/install/bin/_postinstall
@@ -65,9 +65,6 @@ my $debug = 1;
# log file for cpan output
my $cpanLogFile = "/var/log/traffic_ops/cpan.log";
-# used to check for .reconfigure_defaults file for backwards compatability
-my $reconfigure_defaults = "/opt/traffic_ops/.reconfigure_defaults";
-
# maximum size the uncompressed log file should be before rotating it - rotating it copies the current log
# file to the same name appended with .bkp replacing the old backup if any is there
my $maxLogSize = 10000000; #bytes
[07/27] incubator-trafficcontrol git commit: moved the tm.url setup
to postinstall
Posted by da...@apache.org.
moved the tm.url setup to postinstall
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/41c10315
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/41c10315
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/41c10315
Branch: refs/heads/master
Commit: 41c10315fbc02cb82f459ab03c2a57c465750a15
Parents: 83d5be9
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:04:07 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/seeds_demo.sql | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/41c10315/traffic_ops/app/db/seeds_demo.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/seeds_demo.sql b/traffic_ops/app/db/seeds_demo.sql
index 3a37e15..4849a3c 100644
--- a/traffic_ops/app/db/seeds_demo.sql
+++ b/traffic_ops/app/db/seeds_demo.sql
@@ -16,7 +16,6 @@
-- THIS FILE INCLUDES DEMO DATA. IT BUILDS UPON THE RECORDS INSERTED IN SEEDS.SQL
-- parameters (demo)
-insert into parameter (name, config_file, value) values ('tm.url', 'global', 'https://tm.kabletown.net/') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('tm.toolname', 'global', 'Traffic Ops') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('tm.infourl', 'global', 'http://docs.cdnl.kabletown.net/traffic_control/html/') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('tm.logourl', 'global', '/images/tc_logo.png') ON CONFLICT (name, config_file, value) DO NOTHING;
@@ -24,6 +23,12 @@ insert into parameter (name, config_file, value) values ('tm.instance_name', 'gl
insert into parameter (name, config_file, value) values ('geolocation.polling.url', 'CRConfig.json', 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCity.dat.gz') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('geolocation6.polling.url', 'CRConfig.json', 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCityv6.dat.gz') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('tld.soa.admin', 'CRConfig.json', 'traffic_ops') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('health.polling.interval', 'rascal-config.txt', '8000') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('health.threshold.loadavg', 'rascal.properties', '25.0') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('health.connection.timeout', 'rascal.properties', '25.0') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('health.threshold.availableBandwidthInKbps', 'rascal.properties', '>1750000') ON CONFLICT (name, config_file, value) DO NOTHING;
+
-- profile_parameters (demo)
insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.url' and config_file = 'global' and value = 'https://tm.kabletown.net/') ) ON CONFLICT (profile, parameter) DO NOTHING;
insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.toolname' and config_file = 'global' and value = 'Traffic Ops') ) ON CONFLICT (profile, parameter) DO NOTHING;
[18/27] incubator-trafficcontrol git commit: successfully demo'd
postinstall after lots of testing
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/profile.trafficserver_mid.traffic_ops
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/profile.trafficserver_mid.traffic_ops b/traffic_ops/install/data/profiles/profile.trafficserver_mid.traffic_ops
deleted file mode 100644
index 74ec0b4..0000000
--- a/traffic_ops/install/data/profiles/profile.trafficserver_mid.traffic_ops
+++ /dev/null
@@ -1,1498 +0,0 @@
-{
- "parameters": [
- {
- "config_file": "storage.config",
- "name": "Drive_Prefix",
- "value": "{{.DrivePrefix}}"
- },
- {
- "config_file": "storage.config",
- "name": "Drive_Letters",
- "value": "b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.proxy_name",
- "value": "STRING __HOSTNAME__"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.config_dir",
- "value": "STRING etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.proxy_binary_opts",
- "value": "STRING -M"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.env_prep",
- "value": "STRING example_prep.sh"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.temp_dir",
- "value": "STRING /tmp"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm_email",
- "value": "STRING ats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.syslog_facility",
- "value": "STRING LOG_DAEMON"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.output.logfile",
- "value": "STRING traffic.out"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.snapshot_dir",
- "value": "STRING snapshots"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.system.mmap_max",
- "value": "INT 2097152"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.autoconfig.scale",
- "value": "FLOAT 1.5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.accept_threads",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.admin_user",
- "value": "STRING admin"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.number_config_bak",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.user_id",
- "value": "STRING ats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.autoconf_port",
- "value": "INT 8083"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.process_manager.mgmt_port",
- "value": "INT 8084"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm.bin",
- "value": "STRING example_alarm_bin.sh"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm.abs_path",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.server_ports",
- "value": "STRING 80 80:ipv6"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_ports",
- "value": "STRING 443 563"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_request_via_str",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_response_via_str",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.response_server_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_age_in_response",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.enable_url_expandomatic",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.no_dns_just_forward_to_parent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.uncacheable_requests_bypass_parent",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_enabled_in",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_enabled_out",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.chunking_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.send_http11_requests",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.share_server_sessions",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.origin_server_pipeline",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.user_agent_pipeline",
- "value": "INT 8"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_filter",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_format_redirect",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_default_redirect",
- "value": "STRING http://www.example.com/"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy_routing_enable",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.retry_time",
- "value": "INT 60"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.forward.proxy_auth_to_parent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_no_activity_timeout_in",
- "value": "INT 115"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_no_activity_timeout_out",
- "value": "INT 120"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_no_activity_timeout_in",
- "value": "INT 30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_no_activity_timeout_out",
- "value": "INT 30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_active_timeout_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.accept_no_activity_timeout",
- "value": "INT 120"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_max_retries",
- "value": "INT 6"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_max_retries_dead_server",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_rr_retries",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_timeout",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.post_connect_attempts_timeout",
- "value": "INT 1800"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.down_server.cache_time",
- "value": "INT 300"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.down_server.abort_threshold",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.congestion_control.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_from",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_referer",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_user_agent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_cookie",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_client_ip",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_insert_client_ip",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_other_header_list",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_squid_x_forwarded_for",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.push_method_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.http",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_client_no_cache",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ims_on_client_no_cache",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_server_no_cache",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.normalize_ae_gzip",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.cache_responses_to_cookies",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_authentication",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.enable_default_vary_headers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.when_to_revalidate",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.required_headers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.max_stale_age",
- "value": "INT 604800"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.range.lookup",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_min_lifetime",
- "value": "INT 3600"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_max_lifetime",
- "value": "INT 86400"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_lm_factor",
- "value": "FLOAT 0.10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.fuzz.time",
- "value": "INT 240"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.fuzz.probability",
- "value": "FLOAT 0.005"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_text",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_images",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_other",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.enable_http_stats",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.enable_logging",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.response_suppression_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.connections_throttle",
- "value": "INT 500000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.defer_accept",
- "value": "INT 45"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.local.cluster.type",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.cluster_port",
- "value": "INT 8086"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.rsport",
- "value": "INT 8088"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mcport",
- "value": "INT 8089"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mc_group_addr",
- "value": "STRING 224.0.1.37"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mc_ttl",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.log_bogus_mc_msgs",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.ethernet_interface",
- "value": "STRING lo"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.permit.pinning",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.algorithm",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.use_seen_filter",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.compress",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.limits.http.max_alts",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.target_fragment_size",
- "value": "INT 1048576"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.max_doc_size",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.min_average_object_size",
- "value": "INT 131072"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.threads_per_disk",
- "value": "INT 8"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.mutex_retry_delay",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.search_default_domains",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.splitDNS.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.max_dns_in_flight",
- "value": "INT 2048"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.url_expansions",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.round_robin_nameservers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.nameservers",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.resolv_conf",
- "value": "STRING /etc/resolv.conf"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.validate_query_name",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.size",
- "value": "INT 120000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.storage_size",
- "value": "INT 33554432"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.timeout",
- "value": "INT 1440"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.strict_round_robin",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logging_enabled",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_secs_per_buffer",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_for_logs",
- "value": "INT 25000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_for_orphan_logs",
- "value": "INT 25"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_headroom",
- "value": "INT 1000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.hostname",
- "value": "STRING localhost"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logfile_dir",
- "value": "STRING var/log/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logfile_perm",
- "value": "STRING rw-r--r--"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.custom_logs_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_is_ascii",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_name",
- "value": "STRING squid"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_is_ascii",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_name",
- "value": "STRING common"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_is_ascii",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_name",
- "value": "STRING extended"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_is_ascii",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_name",
- "value": "STRING extended2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.separate_icp_logs",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.separate_host_logs",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.local.log.collation_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_host",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_port",
- "value": "INT 8085"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_secret",
- "value": "STRING foobar"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_host_tagged",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_retry_sec",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_interval_sec",
- "value": "INT 86400"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_offset_hr",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_size_mb",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.auto_delete_rolled_files",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.sampling_frequency",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.reverse_proxy.enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.header.parse.no_host_url_redirect",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.default_to_server_pac",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.default_to_server_pac_port",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.pristine_host_hdr",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.number.threads",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.SSLv2",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.TLSv1",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.compression",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.certification_level",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cert_chain.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.CA.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.verify.server",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.private_key.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.CA.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.icp_interface",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.icp_port",
- "value": "INT 3130"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.multicast_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.query_timeout",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.force",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.retry_count",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.retry_interval",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.concurrent_updates",
- "value": "INT 100"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_send_buffer_size_in",
- "value": "INT 262144"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_recv_buffer_size_in",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_send_buffer_size_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_recv_buffer_size_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.core_limit",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.debug.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.debug.tags",
- "value": "STRING http.*|dns.*"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dump_mem_info_frequency",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.slow.log.threshold",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.task_threads",
- "value": "INT 2"
- },
- {
- "config_file": "cache.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "hosting.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "parent.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "plugin.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "records.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "remap.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "storage.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "volume.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "50-ats.rules",
- "name": "location",
- "value": "/etc/udev/rules.d/"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.remap_required",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.file",
- "value": "STRING parent.config"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.filename",
- "value": "STRING remap.config"
- },
- {
- "config_file": "ip_allow.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.cluster_configuration ",
- "value": "STRING cluster.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.loadavg",
- "value": "{{.HealthThresholdLoadavg}}"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.availableBandwidthInKbps",
- "value": "{{.HealthThresholdAvailableBandwidthInKbps}}"
- },
- {
- "config_file": "rascal.properties",
- "name": "history.count",
- "value": "30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.control.filename",
- "value": "STRING cache.config"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingEnabled",
- "value": "3"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingIntervalSec",
- "value": "86400"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingOffsetHr",
- "value": "11"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingSizeMb",
- "value": "1024"
- },
- {
- "config_file": "logs_xml.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.xml_config_file",
- "value": "STRING logs_xml.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.queryTime",
- "value": "1000"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.polling.url",
- "value": "http://${hostname}/_astats?application=&inf.name=${interface_name}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Drive_Prefix",
- "value": "{{.RAMDrivePrefix}}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Drive_Letters",
- "value": "{{.RAMDriveLetters}}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Volume",
- "value": "2"
- },
- {
- "config_file": "storage.config",
- "name": "Disk_Volume",
- "value": "1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.hosting_filename",
- "value": "STRING hosting.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.connection.timeout",
- "value": "{{.HealthConnectionTimeout}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "domain_name",
- "value": "{{.DomainName}}"
- },
- {
- "config_file": "12M_facts",
- "name": "location",
- "value": "/opt/ort"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch",
- "value": "INT 1"
- },
- {
- "config_file": "chkconfig",
- "name": "trafficserver",
- "value": "0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.debug_filter",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.enable_reclaim",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.max_overage",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.show_location",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.allow_empty_doc",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.config.cache.interim.storage",
- "value": "STRING NULL"
- },
- {
- "config_file": "plugin.config",
- "name": "regex_revalidate.so",
- "value": "--config regex_revalidate.config"
- },
- {
- "config_file": "regex_revalidate.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.stack_dump_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.ttl_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.lookup_timeout",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.serve_stale_for",
- "value": "INT 6"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.enable_read_while_writer",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.background_fill_active_timeout",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.background_fill_completed_threshold",
- "value": "FLOAT 0.0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.affinity",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.autoconfig",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.limit",
- "value": "INT 32"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.thread_freelist_size",
- "value": "INT 1024"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.mlock_enabled",
- "value": "INT 2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogFormat.Format",
- "value": "%<cqtq> chi=%<chi> phn=%<phn> php=%<php> shn=%<shn> url=%<cquuc> cqhm=%<cqhm> cqhv=%<cqhv> pssc=%<pssc> ttms=%<ttms> b=%<pscl> sssc=%<sssc> sscl=%<sscl> cfsc=%<cfsc> pfsc=%<pfsc> crc=%<crc> phr=%<phr> pqsn=%<pqsn> uas=\"%<{User-Agent}cqh>\" xmt=\"%<{X-MoneyTrace}cqh>\" "
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogFormat.Name",
- "value": "custom_ats_2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.Format",
- "value": "custom_ats_2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.Filename",
- "value": "custom_ats_2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.size",
- "value": "INT 34359738368"
- },
- {
- "config_file": "plugin.config",
- "name": "astats_over_http.so",
- "value": ""
- },
- {
- "config_file": "astats.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "astats.config",
- "name": "path",
- "value": "_astats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache_cutoff",
- "value": "INT 1073741824"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cipher_suite",
- "value": "STRING ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:RC4-SHA:RC4-MD5:AES128-SHA:AES256-SHA:DES-CBC3-SHA!SRP:!DSS:!PSK:!aNULL:!eNULL:!SSLv2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.honor_cipher_order",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.private_key.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.CA.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.private_key.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.CA.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.SSLv3",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.multicert.filename",
- "value": "STRING ssl_multicert.config"
- },
- {
- "config_file": "package",
- "name": "astats_over_http",
- "value": "1.2-8.el6.x86_64"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.negative_caching_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "astats.config",
- "name": "record_types",
- "value": "122"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_active_timeout_in",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.enable_customizations",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.negative_caching_lifetime",
- "value": "INT 1"
- },
- {
- "config_file": "traffic_ops_ort_syncds.cron",
- "name": "location",
- "value": "/etc/cron.d"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.template_sets_dir",
- "value": "STRING etc/trafficserver/body_factory"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ip_allow.filename",
- "value": "STRING ip_allow.config"
- },
- {
- "config_file": "CRConfig.json",
- "name": "weight",
- "value": "1.0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.fail_threshold",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.total_connect_attempts",
- "value": "INT 3"
- },
- {
- "config_file": "traffic_ops_ort_syncds.cron",
- "name": "cron_ort_syncds_cdn",
- "value": "{{.CronOrtSyncds}}"
- },
- {
- "config_file": "parent.config",
- "name": "weight",
- "value": "0.1"
- },
- {
- "config_file": "package",
- "name": "trafficserver",
- "value": "5.3.2-758.ce6de0c.el6.x86_64"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.guaranteed_max_lifetime",
- "value": "INT 2592000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_client_cc_max_age",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.default_inactivity_timeout",
- "value": "INT 180"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_masklen_v6",
- "value": "40"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_number_v6",
- "value": "5"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_number_v4",
- "value": "5"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_masklen_v4",
- "value": "16"
- }
- ],
- "profile": {
- "description": "TrafficServer Mid profile",
- "name": "MID1_CDN_532"
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/traffic_monitor.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/traffic_monitor.sql b/traffic_ops/install/data/profiles/traffic_monitor.sql
new file mode 100644
index 0000000..e597270
--- /dev/null
+++ b/traffic_ops/install/data/profiles/traffic_monitor.sql
@@ -0,0 +1,37 @@
+INSERT INTO profile (name, description, type) VALUES ('TM_PROFILE','Traffic Monitor','TM_PROFILE') ON CONFLICT (name) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('hack.ttl','rascal-config.txt','30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'hack.ttl' and config_file = 'rascal-config.txt' and value = '30') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('health.event-count','rascal-config.txt','200') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.event-count' and config_file = 'rascal-config.txt' and value = '200') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('health.polling.interval','rascal-config.txt','6000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.polling.interval' and config_file = 'rascal-config.txt' and value = '6000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('health.threadPool','rascal-config.txt','4') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.threadPool' and config_file = 'rascal-config.txt' and value = '4') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('health.timepad','rascal-config.txt','0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.timepad' and config_file = 'rascal-config.txt' and value = '0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('heartbeat.polling.interval','rascal-config.txt','2000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'heartbeat.polling.interval' and config_file = 'rascal-config.txt' and value = '2000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('location','rascal-config.txt','/opt/traffic_monitor/conf') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'location' and config_file = 'rascal-config.txt' and value = '/opt/traffic_monitor/conf') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('peers.polling.interval','rascal-config.txt','1000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'peers.polling.interval' and config_file = 'rascal-config.txt' and value = '1000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.crConfig.polling.url','rascal-config.txt','https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.crConfig.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.dataServer.polling.url','rascal-config.txt','https://${tmHostname}/dataserver/orderby/id') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.dataServer.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/dataserver/orderby/id') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.healthParams.polling.url','rascal-config.txt','https://${tmHostname}/health/${cdnName}') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.healthParams.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/health/${cdnName}') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.polling.interval','rascal-config.txt','60000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.polling.interval' and config_file = 'rascal-config.txt' and value = '60000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/traffic_stats.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/traffic_stats.sql b/traffic_ops/install/data/profiles/traffic_stats.sql
new file mode 100644
index 0000000..e645204
--- /dev/null
+++ b/traffic_ops/install/data/profiles/traffic_stats.sql
@@ -0,0 +1 @@
+INSERT INTO profile (name, description, type) VALUES ('TS_PROFILE','Traffic Stats','INFLUXDB_PROFILE') ON CONFLICT (name) DO NOTHING;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/traffic_vault.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/traffic_vault.sql b/traffic_ops/install/data/profiles/traffic_vault.sql
new file mode 100644
index 0000000..ea45538
--- /dev/null
+++ b/traffic_ops/install/data/profiles/traffic_vault.sql
@@ -0,0 +1 @@
+INSERT INTO profile (name, description, type) VALUES ('TV_PROFILE','Traffic Vault','RIAK_PROFILE') ON CONFLICT (name) DO NOTHING;
[04/27] incubator-trafficcontrol git commit: added seeds_demo hook
Posted by da...@apache.org.
added seeds_demo hook
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/83d5be9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/83d5be9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/83d5be9a
Branch: refs/heads/master
Commit: 83d5be9aca49822fcc52e0f0436c3cfee5bfc4f4
Parents: 775078c
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:03:03 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/admin.pl | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/83d5be9a/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index bf6093e..0a3d8bb 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -65,6 +65,7 @@ my $usage = "\n"
. "redo - Roll back the most recently applied migration, then run it again.\n"
. "reset - Execute db 'dropdb', 'createdb', load_schema, migrate on the database for the current environment.\n"
. "reverse_schema - Reverse engineer the lib/Schema/Result files from the environment database.\n"
+ . "seed_demo - Execute sql from db/seeds_demo.sql for loading static demo data.\n"
. "seed - Execute sql from db/seeds.sql for loading static data.\n"
. "show_users - Execute sql to show all of the user for the current environment.\n"
. "status - Print the status of all migrations.\n"
@@ -133,6 +134,9 @@ if ( defined($argument) ) {
elsif ( $argument eq 'seed' ) {
seed();
}
+ elsif ( $argument eq 'seed_demo' ) {
+ seed_demo();
+ }
elsif ( $argument eq 'load_schema' ) {
load_schema();
}
[11/27] incubator-trafficcontrol git commit: removed demo seeds as
the data/profiles supplants it
Posted by da...@apache.org.
removed demo seeds as the data/profiles supplants it
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9acda6e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9acda6e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9acda6e9
Branch: refs/heads/master
Commit: 9acda6e9941ffda0d92e09ae9cc884fcd2feeb12
Parents: 4c6db49
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 9 08:54:19 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/admin.pl | 8 --------
1 file changed, 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9acda6e9/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index bf6093e..e2dbc4e 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -187,14 +187,6 @@ sub seed {
}
}
-sub seed_demo {
- print "Seeding database w/ demo data.\n";
- local $ENV{PGPASSWORD} = $db_password;
- if ( system("psql -h $host_ip -p $host_port -d $db_name -U $db_user -e < db/seeds_demo.sql") != 0 ) {
- die "Can't seed database w/ demo data\n";
- }
-}
-
sub load_schema {
print "Creating database tables.\n";
local $ENV{PGPASSWORD} = $db_password;
[21/27] incubator-trafficcontrol git commit: cleaned up the output
Posted by da...@apache.org.
cleaned up the output
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/cf4f4c01
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/cf4f4c01
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/cf4f4c01
Branch: refs/heads/master
Commit: cf4f4c01f8134ee76436edd051420fc03c237c64
Parents: d289873
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 15:30:03 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
.../install/data/profiles/export_profiles.pl | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/cf4f4c01/traffic_ops/install/data/profiles/export_profiles.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/export_profiles.pl b/traffic_ops/install/data/profiles/export_profiles.pl
index 4d62c92..f222082 100755
--- a/traffic_ops/install/data/profiles/export_profiles.pl
+++ b/traffic_ops/install/data/profiles/export_profiles.pl
@@ -82,13 +82,8 @@ sub parameterInsert {
},
};
my $nameExcludes=sprintf("%s|%s|%s", $excludes->{name}{prefix}, $excludes->{name}{suffix}, $excludes->{name}{contains});
- InstallUtils::logger( "nameExcludes: " . $nameExcludes, "debug" );
-
my $valueExcludes=sprintf("%s", $excludes->{value}{contains});
- InstallUtils::logger( "valueExcludes: " . $valueExcludes, "debug" );
-
my $configFileExcludes=sprintf("%s|%s|%s", $excludes->{config_file}{prefix}, $excludes->{config_file}{suffix}, $excludes->{config_file}{contains});
- InstallUtils::logger( "configFileExcludes: " . $configFileExcludes, "debug" );
my $q=sprintf("SELECT * FROM profile as p
INNER JOIN profile_parameter as pp ON p.id = pp.profile
@@ -98,20 +93,16 @@ sub parameterInsert {
param.value !~ '%s' AND
param.config_file !~ '%s'
order by param.name", $srcProfileName, $nameExcludes, $valueExcludes, $configFileExcludes);
- InstallUtils::logger( "QUERY:" . $q . "\n", "debug" );
my $stmt = $dbh->prepare($q);
$stmt->execute();
my $insert;
while ( my $row = $stmt->fetchrow_hashref ) {
- my $scrubbed_value = scrub_value($row->{value});
- InstallUtils::logger( "scrubbed_value:" . $scrubbed_value . "\n", "debug" );
- $insert=sprintf("INSERT INTO parameter (name, config_file, value) VALUES ('%s','%s','%s') ON CONFLICT (name, config_file, value) DO NOTHING;", $row->{name}, $row->{config_file}, $scrubbed_value);
+ $insert=sprintf("INSERT INTO parameter (name, config_file, value) VALUES ('%s','%s','%s') ON CONFLICT (name, config_file, value) DO NOTHING;", $row->{name}, $row->{config_file}, scrub_value($row->{value}));
appendToFile($fileName, $insert);
- profileParameterInsert($srcProfileName, $targetProfileName, $row->{name}, $row->{value}, $row->{config_file}, $fileName);
-
+ profileParameterInsert($srcProfileName, $targetProfileName, $row->{name}, scrub_value($row->{value}), $row->{config_file}, $fileName);
}
}
@@ -146,7 +137,6 @@ sub profileInsert {
my $q=sprintf("SELECT * FROM profile WHERE name = '%s' order by name;", $srcProfileName, $fileName);
- InstallUtils::logger( "QUERY:" . $q, "debug" );
my $stmt = $dbh->prepare($q);
$stmt->execute();
my $name;
@@ -263,7 +253,6 @@ sub main {
InstallUtils::logger( "Looking for latest profiles", "info" );
while ( my $row = $latestProfiles->fetchrow_hashref ) {
- InstallUtils::logger( " row: " . Dumper($row), "info" );
my $name = $row->{'name'};
my $fileName = $row->{name}. ".sql";
my $srcProfileName = $row->{value};
@@ -271,16 +260,13 @@ sub main {
if (exists $lookupTable->{$name}) {
my $profile = $lookupTable->{$name};
- InstallUtils::logger( "=============================================", "debug");
- InstallUtils::logger( "profile: " . Dumper($profile), "debug" );
-
my $targetProfileName = $profile->{profile}{name};
my $targetProfileDesc = $profile->{profile}{description};
my $targetParameterConfigFile = $profile->{parameter}{config_file};
- InstallUtils::logger( "targetProfileName: $targetProfileName", "debug" );
$outputFilePath=sprintf("%s/%s", $pwd, $fileName);
unlink($outputFilePath);
generateInserts($srcProfileName, $targetProfileName, $targetProfileDesc, $targetParameterConfigFile, $fileName);
+ InstallUtils::logger( "Wrote exported file: $outputFilePath\n", "debug" );
}
}
[23/27] incubator-trafficcontrol git commit: added README.md
Posted by da...@apache.org.
added README.md
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9788eab1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9788eab1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9788eab1
Branch: refs/heads/master
Commit: 9788eab12116efa5031459face1f7581bc2c2f86
Parents: cf4f4c0
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 9 07:57:19 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/data/profiles/README.md | 38 ++++++++++++++++++++++++
1 file changed, 38 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9788eab1/traffic_ops/install/data/profiles/README.md
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/README.md b/traffic_ops/install/data/profiles/README.md
new file mode 100644
index 0000000..b45adfd
--- /dev/null
+++ b/traffic_ops/install/data/profiles/README.md
@@ -0,0 +1,38 @@
+
+# Profiles:
+
+- This directory contains sample profiles that can be loaded in to a new
+ instance of Traffic Ops.
+
+## Load Sample Profiles
+
+### Prerequisites:
+
+ * Postgres database is setup
+ * Traffic Ops RPM is installed and configured to point to the Postgres Database
+ * Traffic Ops `/opt/traffic_ops/install/bin/postinstall` has been run to create the tables, seed with data, and tables migrated
+
+- To build the profiles to be loaded above one can `export` profiles from a Traffic Ops Instance
+ with production data
+
+ After a successful `postinstall` execution. Run the following commands from the new Traffic Ops instance
+ ```
+ $ cd /opt/traffic_ops/install/data/profiles
+ $ ./load_profiles.sh
+ ```
+----
+## Export Sample Profiles
+
+### Prerequisites:
+
+ * Postgres database with production data
+ * Traffic Ops RPM is installed and configured to point to the appropriate Postgres database
+ * Verify that the `$lookupTable` variable matches the `latest_` profiles in your production database with the `export_profiles.pl` script.
+
+
+ After a successful `postinstall` execution. Run the following command from the new Traffic Ops instance
+ ```
+ $ cd /opt/traffic_ops/install/data/profiles
+ $ ./export_profiles.pl
+ ```
+
[02/27] incubator-trafficcontrol git commit: added description
Posted by da...@apache.org.
added description
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3336900e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3336900e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3336900e
Branch: refs/heads/master
Commit: 3336900eba560a3ee45f042c91004ec5795de3d3
Parents: a021bcd
Author: Dewayne Richardson <de...@apache.org>
Authored: Wed May 3 10:48:30 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/todb_bootstrap.sh | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3336900e/traffic_ops/install/bin/todb_bootstrap.sh
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/todb_bootstrap.sh b/traffic_ops/install/bin/todb_bootstrap.sh
index c7bf2e9..2de2d03 100755
--- a/traffic_ops/install/bin/todb_bootstrap.sh
+++ b/traffic_ops/install/bin/todb_bootstrap.sh
@@ -1,9 +1,6 @@
#!/usr/bin/env bash
-# This script sets up the 'traffic_ops' role and database to simplify schema and data loading
-#
# To bypass the password prompts for automation, please set TODB_USERNAME_PASSWORD=<yourpassword> before you invoke
-#
# Example:
#
[24/27] incubator-trafficcontrol git commit: cleaned up formatting
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8af6bb0b/traffic_ops/install/data/profiles/trafficserver_mid.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/trafficserver_mid.sql b/traffic_ops/install/data/profiles/trafficserver_mid.sql
index 26a0f05..447d450 100644
--- a/traffic_ops/install/data/profiles/trafficserver_mid.sql
+++ b/traffic_ops/install/data/profiles/trafficserver_mid.sql
@@ -1,907 +1,907 @@
INSERT INTO profile (name, description, type) VALUES ('MID_PROFILE','Mid Cache','ATS_PROFILE') ON CONFLICT (name) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http','package','1.2-8.el6.x86_64') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http','package','1.2-8.el6.x86_64') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'astats_over_http' and config_file = 'package' and value = '1.2-8.el6.x86_64') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http.so','plugin.config','') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http.so','plugin.config','') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'astats_over_http.so' and config_file = 'plugin.config' and value = '') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v4','ip_allow.config','16') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v4','ip_allow.config','16') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v4' and config_file = 'ip_allow.config' and value = '16') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v6','ip_allow.config','40') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v6','ip_allow.config','40') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v6' and config_file = 'ip_allow.config' and value = '40') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v4','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v4','ip_allow.config','5') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_number_v4' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v6','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v6','ip_allow.config','5') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'coalesce_number_v6' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.accept_threads','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.accept_threads','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.accept_threads' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.admin_user','records.config','STRING admin') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.admin_user','records.config','STRING admin') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.admin_user' and config_file = 'records.config' and value = 'STRING admin') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.autoconf_port','records.config','INT 8083') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.autoconf_port','records.config','INT 8083') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.autoconf_port' and config_file = 'records.config' and value = 'INT 8083') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.number_config_bak','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.number_config_bak','records.config','INT 3') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.number_config_bak' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.user_id','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.user_id','records.config','STRING ats') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.user_id' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.abs_path','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.abs_path','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.abs_path' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.bin','records.config','STRING example_alarm_bin.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.bin','records.config','STRING example_alarm_bin.sh') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.bin' and config_file = 'records.config' and value = 'STRING example_alarm_bin.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm_email','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm_email','records.config','STRING ats') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm_email' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.debug_filter','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.debug_filter','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.debug_filter' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.enable_reclaim','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.enable_reclaim','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.enable_reclaim' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.max_overage','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.max_overage','records.config','INT 3') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.max_overage' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.thread_freelist_size','records.config','INT 1024') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.thread_freelist_size','records.config','INT 1024') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.thread_freelist_size' and config_file = 'records.config' and value = 'INT 1024') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_customizations','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_customizations','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_customizations' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_logging','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_logging','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_logging' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.response_suppression_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.response_suppression_mode','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.response_suppression_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.template_sets_dir','records.config','STRING etc/trafficserver/body_factory') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.template_sets_dir','records.config','STRING etc/trafficserver/body_factory') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.template_sets_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver/body_factory') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.control.filename','records.config','STRING cache.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.control.filename','records.config','STRING cache.config') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.control.filename' and config_file = 'records.config' and value = 'STRING cache.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.enable_read_while_writer','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.enable_read_while_writer','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.enable_read_while_writer' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.hosting_filename','records.config','STRING hosting.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.hosting_filename','records.config','STRING hosting.config') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.hosting_filename' and config_file = 'records.config' and value = 'STRING hosting.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ip_allow.filename','records.config','STRING ip_allow.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ip_allow.filename','records.config','STRING ip_allow.config') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ip_allow.filename' and config_file = 'records.config' and value = 'STRING ip_allow.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.limits.http.max_alts','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.limits.http.max_alts','records.config','INT 5') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.limits.http.max_alts' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.max_doc_size','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.max_doc_size','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.max_doc_size' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.min_average_object_size','records.config','INT 131072') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.min_average_object_size','records.config','INT 131072') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.min_average_object_size' and config_file = 'records.config' and value = 'INT 131072') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.mutex_retry_delay','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.mutex_retry_delay','records.config','INT 2') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.mutex_retry_delay' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.permit.pinning','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.permit.pinning','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.permit.pinning' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.algorithm','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.algorithm','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.algorithm' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.compress','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.compress','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.compress' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache_cutoff','records.config','INT 1073741824') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache_cutoff','records.config','INT 1073741824') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache_cutoff' and config_file = 'records.config' and value = 'INT 1073741824') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.size','records.config','INT 34359738368') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.size','records.config','INT 34359738368') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.size' and config_file = 'records.config' and value = 'INT 34359738368') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.use_seen_filter','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.use_seen_filter','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.use_seen_filter' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.target_fragment_size','records.config','INT 1048576') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.target_fragment_size','records.config','INT 1048576') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.target_fragment_size' and config_file = 'records.config' and value = 'INT 1048576') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.threads_per_disk','records.config','INT 8') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.threads_per_disk','records.config','INT 8') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.threads_per_disk' and config_file = 'records.config' and value = 'INT 8') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_configuration ','records.config','STRING cluster.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_configuration ','records.config','STRING cluster.config') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_configuration ' and config_file = 'records.config' and value = 'STRING cluster.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_port','records.config','INT 8086') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_port','records.config','INT 8086') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_port' and config_file = 'records.config' and value = 'INT 8086') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.ethernet_interface','records.config','STRING lo') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.ethernet_interface','records.config','STRING lo') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.ethernet_interface' and config_file = 'records.config' and value = 'STRING lo') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.log_bogus_mc_msgs','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.log_bogus_mc_msgs','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.log_bogus_mc_msgs' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_group_addr','records.config','STRING 224.0.1.37') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_group_addr','records.config','STRING 224.0.1.37') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_group_addr' and config_file = 'records.config' and value = 'STRING 224.0.1.37') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mcport','records.config','INT 8089') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mcport','records.config','INT 8089') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mcport' and config_file = 'records.config' and value = 'INT 8089') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_ttl','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_ttl','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_ttl' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.rsport','records.config','INT 8088') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.rsport','records.config','INT 8088') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.rsport' and config_file = 'records.config' and value = 'INT 8088') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.config_dir','records.config','STRING etc/trafficserver') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.config_dir','records.config','STRING etc/trafficserver') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.config_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.core_limit','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.core_limit','records.config','INT -1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.core_limit' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.enabled','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.tags','records.config','STRING http.*|dns.*') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.tags','records.config','STRING http.*|dns.*') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.tags' and config_file = 'records.config' and value = 'STRING http.*|dns.*') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.show_location','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.show_location','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.show_location' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.lookup_timeout','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.lookup_timeout','records.config','INT 2') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.lookup_timeout' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.max_dns_in_flight','records.config','INT 2048') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.max_dns_in_flight','records.config','INT 2048') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.max_dns_in_flight' and config_file = 'records.config' and value = 'INT 2048') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.nameservers','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.nameservers','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.nameservers' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.resolv_conf','records.config','STRING /etc/resolv.conf') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.resolv_conf','records.config','STRING /etc/resolv.conf') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.resolv_conf' and config_file = 'records.config' and value = 'STRING /etc/resolv.conf') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.round_robin_nameservers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.round_robin_nameservers','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.round_robin_nameservers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.search_default_domains','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.search_default_domains','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.search_default_domains' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.splitDNS.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.splitDNS.enabled','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.splitDNS.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.url_expansions','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.url_expansions','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.url_expansions' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.validate_query_name','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.validate_query_name','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.validate_query_name' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dump_mem_info_frequency','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dump_mem_info_frequency','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dump_mem_info_frequency' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.env_prep','records.config','STRING example_prep.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.env_prep','records.config','STRING example_prep.sh') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.env_prep' and config_file = 'records.config' and value = 'STRING example_prep.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.affinity','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.affinity','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.affinity' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig.scale','records.config','FLOAT 1.5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig.scale','records.config','FLOAT 1.5') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig.scale' and config_file = 'records.config' and value = 'FLOAT 1.5') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.limit','records.config','INT 32') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.limit','records.config','INT 32') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.limit' and config_file = 'records.config' and value = 'INT 32') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.header.parse.no_host_url_redirect','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.header.parse.no_host_url_redirect','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.header.parse.no_host_url_redirect' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.serve_stale_for','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.serve_stale_for','records.config','INT 6') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.serve_stale_for' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.size','records.config','INT 120000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.size','records.config','INT 120000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.size' and config_file = 'records.config' and value = 'INT 120000') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.storage_size','records.config','INT 33554432') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.storage_size','records.config','INT 33554432') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.storage_size' and config_file = 'records.config' and value = 'INT 33554432') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.strict_round_robin','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.strict_round_robin','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.strict_round_robin' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.timeout','records.config','INT 1440') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.timeout','records.config','INT 1440') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.timeout' and config_file = 'records.config' and value = 'INT 1440') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.ttl_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.ttl_mode','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.ttl_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.accept_no_activity_timeout','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.accept_no_activity_timeout','records.config','INT 120') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.accept_no_activity_timeout' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_insert_client_ip','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_insert_client_ip','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_insert_client_ip' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_other_header_list','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_other_header_list','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_other_header_list' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_client_ip','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_client_ip','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_client_ip' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_cookie','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_cookie','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_cookie' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_from','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_from','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_from' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_referer','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_referer','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_referer' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_user_agent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_user_agent','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_user_agent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_active_timeout','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_active_timeout','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_active_timeout' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_completed_threshold','records.config','FLOAT 0.0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_completed_threshold','records.config','FLOAT 0.0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_completed_threshold' and config_file = 'records.config' and value = 'FLOAT 0.0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.allow_empty_doc','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.allow_empty_doc','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.allow_empty_doc' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_responses_to_cookies','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_responses_to_cookies','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_responses_to_cookies' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.enable_default_vary_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.enable_default_vary_headers','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.enable_default_vary_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.probability','records.config','FLOAT 0.005') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.probability','records.config','FLOAT 0.005') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.probability' and config_file = 'records.config' and value = 'FLOAT 0.005') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.time','records.config','INT 240') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.time','records.config','INT 240') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.time' and config_file = 'records.config' and value = 'INT 240') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.guaranteed_max_lifetime','records.config','INT 2592000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.guaranteed_max_lifetime','records.config','INT 2592000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.guaranteed_max_lifetime' and config_file = 'records.config' and value = 'INT 2592000') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_lm_factor','records.config','FLOAT 0.10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_lm_factor','records.config','FLOAT 0.10') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_lm_factor' and config_file = 'records.config' and value = 'FLOAT 0.10') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_max_lifetime','records.config','INT 86400') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_max_lifetime','records.config','INT 86400') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_max_lifetime' and config_file = 'records.config' and value = 'INT 86400') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_min_lifetime','records.config','INT 3600') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_min_lifetime','records.config','INT 3600') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_min_lifetime' and config_file = 'records.config' and value = 'INT 3600') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.http','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.http','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.http' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_authentication','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_authentication','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_authentication' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_cc_max_age','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_cc_max_age','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_cc_max_age' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_no_cache','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_server_no_cache','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_server_no_cache','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_server_no_cache' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ims_on_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ims_on_client_no_cache','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ims_on_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.max_stale_age','records.config','INT 604800') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.max_stale_age','records.config','INT 604800') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.max_stale_age' and config_file = 'records.config' and value = 'INT 604800') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.range.lookup','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.range.lookup','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.range.lookup' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.required_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.required_headers','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.required_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_images','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_images','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_images' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_other','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_other','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_other' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_text','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_text','records.config','STRING NULL') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_text' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests','records.config','INT -1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_revalidate','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_revalidate','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_revalidate' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.chunking_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.chunking_enabled','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.chunking_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.congestion_control.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.congestion_control.enabled','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.congestion_control.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries','records.config','INT 6') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries_dead_server','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries_dead_server','records.config','INT 3') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries_dead_server' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_rr_retries','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_rr_retries','records.config','INT 3') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_rr_retries' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_timeout','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_timeout','records.config','INT 10') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_ports','records.config','STRING 443 563') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_ports','records.config','STRING 443 563') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_ports' and config_file = 'records.config' and value = 'STRING 443 563') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.abort_threshold','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.abort_threshold','records.config','INT 10') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.abort_threshold' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.cache_time','records.config','INT 300') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.cache_time','records.config','INT 300') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.cache_time' and config_file = 'records.config' and value = 'INT 300') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_http_stats','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_http_stats','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_http_stats' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_url_expandomatic','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_url_expandomatic','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_url_expandomatic' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.forward.proxy_auth_to_parent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.forward.proxy_auth_to_parent','records.config','INT 0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.forward.proxy_auth_to_parent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_age_in_response','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_age_in_response','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_age_in_response' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_request_via_str','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_request_via_str','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_request_via_str' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_response_via_str','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_response_via_str','records.config','INT 3') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_response_via_str' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_squid_x_forwarded_for','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_squid_x_forwarded_for','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_squid_x_forwarded_for' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_in','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_in','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_in' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_out','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_out','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_out' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_in','records.config','INT 115') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_in','records.config','INT 115') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_in' and config_file = 'records.config' and value = 'INT 115') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_out','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_out','records.config','INT 120') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_out' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_enabled','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_lifetime','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_lifetime','records.config','INT 1') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'MID_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_lifetime' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, pa
<TRUNCATED>
[03/27] incubator-trafficcontrol git commit: updated to fix the
insert admin sequence
Posted by da...@apache.org.
updated to fix the insert admin sequence
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/a021bcd5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/a021bcd5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/a021bcd5
Branch: refs/heads/master
Commit: a021bcd5136479bd41413fb3f5a96348493f8270
Parents: 16b300c
Author: Dewayne Richardson <de...@apache.org>
Authored: Wed May 3 10:47:54 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/_postinstall | 65 ++++---------------------------
1 file changed, 7 insertions(+), 58 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/a021bcd5/traffic_ops/install/bin/_postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/_postinstall b/traffic_ops/install/bin/_postinstall
index 3c1b8c0..77d28f3 100755
--- a/traffic_ops/install/bin/_postinstall
+++ b/traffic_ops/install/bin/_postinstall
@@ -35,6 +35,7 @@ use Getopt::Long;
use InstallUtils qw{ :all };
use GenerateCert qw{ :all };
+use Database qw{ connect };
# paths of the output configuration files
my $databaseConfFile = "/opt/traffic_ops/app/conf/production/database.conf";
@@ -516,18 +517,6 @@ sub getDefaults {
{
"DNS sub-domain for which your CDN is authoritative" => "cdn1.kabletown.net",
"config_var" => "dns_subdomain"
- },
- {
- "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"
}
]
};
@@ -568,14 +557,13 @@ QUERY
# Skip the insert if the admin 'username' is already there.
my $sha1_passwd = sha1_hex( $adminconf->{"password"} );
-
my $insert_admin = <<"ADMIN";
- insert into tm_user (username, role, local_passwd)
- values ("$adminconf->{"username"}",
+ insert into tm_user (username, role, local_passwd, confirm_local_passwd)
+ values ('$adminconf->{"username"}',
(select id from role where name = 'admin'),
- "$sha1_passwd",
- "$sha1_passwd" ))
- ON CONFLICT (profile, parameter) DO NOTHING ON CONFLICT (username) DO NOTHING;"
+ '$sha1_passwd',
+ '$sha1_passwd' )
+ ON CONFLICT (username) DO NOTHING;
ADMIN
$dbh->do($insert_admin);
@@ -654,35 +642,6 @@ sub setupCertificates {
}
#------------------------------------
-sub connect_to_database {
- my $databaseConfFile = shift;
- my $todbconf = shift;
-
- my $dbconf = InstallUtils::readJson($databaseConfFile);
-
- # Check if the Postgres db is used and set the admin database to be "postgres"
- my $dbName = $dbconf->{type};
- if ( $dbconf->{type} eq "Pg" ) {
- $dbName = "traffic_ops";
- }
-
- $ENV{PGUSER} = $todbconf->{"pgUser"};
- $ENV{PGPASSWORD} = $todbconf->{"pgPassword"};
-
- my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbName, $dbconf->{hostname}, $dbconf->{port} );
- my $dbh = DBI->connect( $dsn, $todbconf->{"pgUser"}, $todbconf->{"pgPassword"} );
- if ($dbh) {
- InstallUtils::logger( "Database connection succeeded", "info" );
- }
- else {
- InstallUtils::logger( "Error connecting to database", "error" );
- exit(-1);
- }
- return $dbh;
-
-}
-
-#------------------------------------
sub insert_parameters {
my $dbh = shift;
my $paramconf = shift;
@@ -720,16 +679,6 @@ sub insert_parameters {
values ('geolocation6.polling.url', 'CRConfig.json', '$paramconf->{"tm.url"}/routing/GeoLiteCityv6.dat.gz')
ON CONFLICT (name, config_file, value) DO NOTHING;
- -- RAM Prefix
- insert into parameter (name, config_file, value)
- values ('RAM_Drive_Prefix', 'storage.config', '$paramconf->{"ram_drive_prefix"}')
- ON CONFLICT (name, config_file, value) DO NOTHING;
-
- insert into parameter (name, config_file, value)
- values ('RAM_Drive_Letters', 'storage.config', '$paramconf->{"ram_drive_letters"}')
- ON CONFLICT (name, config_file, value) DO NOTHING;
-
-
INSERTS
doInsert($dbh, $insert_stmt);
}
@@ -897,7 +846,7 @@ sub main {
setupMaxMind( $todbconf->{"maxmind"} );
setupCertificates( $opensslconf );
- my $dbh = connect_to_database($databaseConfFile, $todbconf);
+ my $dbh = Database::connect($databaseConfFile, $todbconf);
setupDatabaseData( $dbh, $adminconf, $paramconf );
InstallUtils::logger("Starting Traffic Ops", "info" );
[25/27] incubator-trafficcontrol git commit: cleaned up formatting
Posted by da...@apache.org.
cleaned up formatting
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/8af6bb0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/8af6bb0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/8af6bb0b
Branch: refs/heads/master
Commit: 8af6bb0b1065f3f63a201a1e9398476214dbb7ac
Parents: d94601a
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 15:29:38 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
.../install/data/profiles/trafficserver_mid.sql | 606 +++++++++----------
1 file changed, 303 insertions(+), 303 deletions(-)
----------------------------------------------------------------------
[10/27] incubator-trafficcontrol git commit: moved tm.toolname and
tm.instance_name into the seeds
Posted by da...@apache.org.
moved tm.toolname and tm.instance_name into the seeds
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/a032e47f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/a032e47f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/a032e47f
Branch: refs/heads/master
Commit: a032e47fde485a3b3e01b65a6d581fa916369cbd
Parents: 9acda6e
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 9 12:23:20 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/seeds.sql | 37 +++++--------------------------
traffic_ops/install/bin/_postinstall | 8 -------
2 files changed, 5 insertions(+), 40 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/a032e47f/traffic_ops/app/db/seeds.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/seeds.sql b/traffic_ops/app/db/seeds.sql
index 01d02bc..da696ba 100644
--- a/traffic_ops/app/db/seeds.sql
+++ b/traffic_ops/app/db/seeds.sql
@@ -28,20 +28,12 @@ insert into job_status (name, description) values ('PENDING', 'Job is queued, bu
-- parameters
-- Move into postinstall global parameters
insert into profile (name, description, type) values ('GLOBAL', 'Global Traffic Ops profile, DO NOT DELETE', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
-insert into parameter (name, config_file, value) values ('maxRevalDurationDays', 'regex_revalidate.config', '90') ON CONFLICT (name, config_file, value) DO NOTHING;
---------------------------------
-insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'bandwidth') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'maxKbps') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'ats.proxy.process.http.current_client_connections') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'kbps') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'status_4xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'status_5xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_2xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_3xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_4xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_5xx') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_total') ON CONFLICT (name, config_file, value) DO NOTHING;
+-- profiles
+---------------------------------
+insert into parameter (name, config_file, value) values ('tm.instance_name', 'global', 'Traffic Ops CDN') ON CONFLICT (name, config_file, value) DO NOTHING;
+insert into parameter (name, config_file, value) values ('tm.toolname', 'global', 'Traffic Ops') ON CONFLICT (name, config_file, value) DO NOTHING;
-- profiles
---------------------------------
@@ -53,29 +45,10 @@ insert into profile (name, description, type) values ('TRAFFIC_STATS', 'Traffic
insert into profile (name, description, type) values ('INFLUXDB', 'InfluxDb profile', 'INFLUXDB_PROFILE') ON CONFLICT (name) DO NOTHING;
insert into profile (name, description, type) values ('RIAK_ALL', 'Riak profile for all CDNs', 'RIAK_PROFILE') ON CONFLICT (name) DO NOTHING;
--- profile_parameters
-insert into profile_parameter (profile, parameter)
- values (
- (select id from profile where name = 'TRAFFIC_STATS'),
- (select id from parameter
- where name = 'CacheStats'
- and config_file = 'traffic_stats.config'
- and value = 'bandwidth') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'CacheStats' and config_file = 'traffic_stats.config' and value = 'maxKbps') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'CacheStats' and config_file = 'traffic_stats.config' and value = 'ats.proxy.process.http.current_client_connections') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'kbps') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'tps_2xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'status_4xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'status_5xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'tps_3xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'tps_4xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'tps_5xx') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'tps_total') ) ON CONFLICT (profile, parameter) DO NOTHING;
-
-- statuses
insert into status (name, description) values ('OFFLINE', 'Server is Offline. Not active in any configuration.') ON CONFLICT (name) DO NOTHING;
insert into status (name, description) values ('ONLINE', 'Server is online.') ON CONFLICT (name) DO NOTHING;
-insert into status (name, description) values ('REPORTED', 'Server is online and reporeted in the health protocol.') ON CONFLICT (name) DO NOTHING;
+insert into status (name, description) values ('REPORTED', 'Server is online and reported in the health protocol.') ON CONFLICT (name) DO NOTHING;
insert into status (name, description) values ('ADMIN_DOWN', 'Sever is administrative down and does not receive traffic.') ON CONFLICT (name) DO NOTHING;
insert into status (name, description) values ('CCR_IGNORE', 'Server is ignored by traffic router.') ON CONFLICT (name) DO NOTHING;
insert into status (name, description) values ('PRE_PROD', 'Pre Production. Not active in any configuration.') ON CONFLICT (name) DO NOTHING;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/a032e47f/traffic_ops/install/bin/_postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/_postinstall b/traffic_ops/install/bin/_postinstall
index 96149a9..60da86c 100755
--- a/traffic_ops/install/bin/_postinstall
+++ b/traffic_ops/install/bin/_postinstall
@@ -495,14 +495,6 @@ sub getDefaults {
"config_var" => "tm.url"
},
{
- "Traffic Ops Instance Name" => "Traffic Ops CDN",
- "config_var" => "tm.instance_name"
- },
- {
- "Traffic Ops Tool Name" => "Traffic Ops",
- "config_var" => "tm.toolname"
- },
- {
"Human-readable CDN Name. (No whitespace, please)" => "kabletown_cdn",
"config_var" => "cdn_name"
},
[19/27] incubator-trafficcontrol git commit: successfully demo'd
postinstall after lots of testing
Posted by da...@apache.org.
successfully demo'd postinstall after lots of testing
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0351e1b1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0351e1b1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0351e1b1
Branch: refs/heads/master
Commit: 0351e1b1c8afc9b209ae83baebb8997711e2a930
Parents: f173d5b
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 14:42:08 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/seeds.sql | 16 +-
traffic_ops/install/data/json/cdn.json | 1 -
traffic_ops/install/data/json/parameter.json | 3 -
traffic_ops/install/data/json/post_install.json | 0
traffic_ops/install/data/json/profile.json | 3 -
.../install/data/json/profile_parameter.json | 3 -
traffic_ops/install/data/json/status.json | 3 -
traffic_ops/install/data/json/type.json | 5 -
.../install/data/profiles/export_profiles.pl | 294 ++++
.../install/data/profiles/load_profiles.sh | 1 +
.../data/profiles/profile.global.traffic_ops | 53 -
.../profile.traffic_monitor.traffic_ops | 63 -
.../profiles/profile.traffic_router.traffic_ops | 153 --
.../profile.trafficserver_edge.traffic_ops | 1648 ------------------
.../profile.trafficserver_mid.traffic_ops | 1498 ----------------
.../install/data/profiles/traffic_monitor.sql | 37 +
.../install/data/profiles/traffic_stats.sql | 1 +
.../install/data/profiles/traffic_vault.sql | 1 +
.../data/profiles/trafficserver_edge.sql | 1000 +++++++++++
.../install/data/profiles/trafficserver_mid.sql | 907 ++++++++++
traffic_ops/install/lib/Database.pm | 55 +
21 files changed, 2308 insertions(+), 3437 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/app/db/seeds.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/seeds.sql b/traffic_ops/app/db/seeds.sql
index 43e18c0..01d02bc 100644
--- a/traffic_ops/app/db/seeds.sql
+++ b/traffic_ops/app/db/seeds.sql
@@ -26,9 +26,11 @@ insert into job_agent (name, description, active) values ('dummy', 'Description
insert into job_status (name, description) values ('PENDING', 'Job is queued, but has not been picked up by any agents yet') ON CONFLICT (name) DO NOTHING;
-- parameters
-insert into parameter (name, config_file, value) values ('ttl_max_hours', 'regex_revalidate.config', '672') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('ttl_min_hours', 'regex_revalidate.config', '48') ON CONFLICT (name, config_file, value) DO NOTHING;
+-- Move into postinstall global parameters
+insert into profile (name, description, type) values ('GLOBAL', 'Global Traffic Ops profile, DO NOT DELETE', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
insert into parameter (name, config_file, value) values ('maxRevalDurationDays', 'regex_revalidate.config', '90') ON CONFLICT (name, config_file, value) DO NOTHING;
+---------------------------------
+
insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'bandwidth') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'maxKbps') ON CONFLICT (name, config_file, value) DO NOTHING;
insert into parameter (name, config_file, value) values ('CacheStats', 'traffic_stats.config', 'ats.proxy.process.http.current_client_connections') ON CONFLICT (name, config_file, value) DO NOTHING;
@@ -42,7 +44,7 @@ insert into parameter (name, config_file, value) values ('DsStats', 'traffic_sta
insert into parameter (name, config_file, value) values ('DsStats', 'traffic_stats.config', 'tps_total') ON CONFLICT (name, config_file, value) DO NOTHING;
-- profiles
-insert into profile (name, description, type) values ('GLOBAL', 'Global Traffic Ops profile, DO NOT DELETE', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
+---------------------------------
insert into profile (name, description, type) values ('TRAFFIC_ANALYTICS', 'Traffic Analytics profile', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
insert into profile (name, description, type) values ('TRAFFIC_OPS', 'Traffic Ops profile', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
insert into profile (name, description, type) values ('TRAFFIC_OPS_DB', 'Traffic Ops DB profile', 'UNK_PROFILE') ON CONFLICT (name) DO NOTHING;
@@ -52,7 +54,13 @@ insert into profile (name, description, type) values ('INFLUXDB', 'InfluxDb prof
insert into profile (name, description, type) values ('RIAK_ALL', 'Riak profile for all CDNs', 'RIAK_PROFILE') ON CONFLICT (name) DO NOTHING;
-- profile_parameters
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'CacheStats' and config_file = 'traffic_stats.config' and value = 'bandwidth') ) ON CONFLICT (profile, parameter) DO NOTHING;
+insert into profile_parameter (profile, parameter)
+ values (
+ (select id from profile where name = 'TRAFFIC_STATS'),
+ (select id from parameter
+ where name = 'CacheStats'
+ and config_file = 'traffic_stats.config'
+ and value = 'bandwidth') ) ON CONFLICT (profile, parameter) DO NOTHING;
insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'CacheStats' and config_file = 'traffic_stats.config' and value = 'maxKbps') ) ON CONFLICT (profile, parameter) DO NOTHING;
insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'CacheStats' and config_file = 'traffic_stats.config' and value = 'ats.proxy.process.http.current_client_connections') ) ON CONFLICT (profile, parameter) DO NOTHING;
insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'TRAFFIC_STATS'), (select id from parameter where name = 'DsStats' and config_file = 'traffic_stats.config' and value = 'kbps') ) ON CONFLICT (profile, parameter) DO NOTHING;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/cdn.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/cdn.json b/traffic_ops/install/data/json/cdn.json
deleted file mode 100644
index ab76e92..0000000
--- a/traffic_ops/install/data/json/cdn.json
+++ /dev/null
@@ -1 +0,0 @@
-{"name":"cdn","config_file":"rascal-config.txt"}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/parameter.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/parameter.json b/traffic_ops/install/data/json/parameter.json
deleted file mode 100644
index 0e0dcd2..0000000
--- a/traffic_ops/install/data/json/parameter.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/post_install.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/post_install.json b/traffic_ops/install/data/json/post_install.json
new file mode 100644
index 0000000..e69de29
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/profile.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/profile.json b/traffic_ops/install/data/json/profile.json
deleted file mode 100644
index 0e0dcd2..0000000
--- a/traffic_ops/install/data/json/profile.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/profile_parameter.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/profile_parameter.json b/traffic_ops/install/data/json/profile_parameter.json
deleted file mode 100644
index 0e0dcd2..0000000
--- a/traffic_ops/install/data/json/profile_parameter.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/status.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/status.json b/traffic_ops/install/data/json/status.json
deleted file mode 100644
index 0e0dcd2..0000000
--- a/traffic_ops/install/data/json/status.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/json/type.json
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/json/type.json b/traffic_ops/install/data/json/type.json
deleted file mode 100644
index 952a009..0000000
--- a/traffic_ops/install/data/json/type.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-
-}
-
-
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/export_profiles.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/export_profiles.pl b/traffic_ops/install/data/profiles/export_profiles.pl
new file mode 100755
index 0000000..4d62c92
--- /dev/null
+++ b/traffic_ops/install/data/profiles/export_profiles.pl
@@ -0,0 +1,294 @@
+#!/usr/bin/perl
+
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+use lib qw(/opt/traffic_ops/install/lib /opt/traffic_ops/app/lib /opt/traffic_ops/app/local/lib/perl5);
+
+$ENV{PERL5LIB} = "/opt/traffic_ops/install/lib:/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5:$ENV{PERL5LIB}";
+$ENV{PATH} = "/usr/bin:/opt/traffic_ops/go/bin:/usr/local/go/bin:/opt/traffic_ops/install/bin:$ENV{PATH}";
+$ENV{GOPATH} = "/opt/traffic_ops/go";
+
+use strict;
+use warnings;
+
+use Safe;
+use DBI;
+use POSIX;
+use Digest::SHA1 qw(sha1_hex);
+use Data::Dumper qw(Dumper);
+use Getopt::Long;
+use Cwd;
+my $pwd = getcwd;
+my $dbh;
+
+use InstallUtils qw{ :all };
+use Database qw{ connect };
+
+# paths of the output configuration files
+my $databaseConfFile = "/opt/traffic_ops/app/conf/production/database.conf";
+my $dbConfFile = "/opt/traffic_ops/app/db/dbconf.yml";
+# log file for the installer
+my $logFile = "/var/log/traffic_ops/export_profiles.log";
+
+# debug mode
+my $debug = 0;
+my $maxLogSize = 10000000; #bytes
+my $outputFilePath;
+
+
+sub getLatestProfiles {
+ my $result;
+
+ my $q=sprintf("SELECT * FROM profile as p
+ INNER JOIN profile_parameter as pp ON p.id = pp.profile
+ INNER JOIN parameter as param ON pp.parameter = param.id
+ WHERE param.config_file = 'build_setup' order by param.name");
+ my $stmt = $dbh->prepare($q);
+ $stmt->execute();
+ return $stmt;
+}
+
+sub parameterInsert {
+
+ my $srcProfileName = shift;
+ my $targetProfileName = shift;
+ my $fileName = shift;
+
+ my $excludes = {
+ #NOTE: Prefix begins with ^,
+ # Suffix ends with \$
+ name => { prefix => "^visual_status_panel|^latest_" ,
+ suffix => "^.dnssec.inception\$|_fw_proxy\$|_graph_url\$",
+ contains => "^allow_ip|allow_ip6|purge_allow_ip.*|.*ramdisk_size.*",
+ },
+ value => {
+ contains => "comcast",
+ },
+ config_file => { prefix => "^teak|^url_sig_|^regex_remap_|^hdr_rw_" ,
+ suffix => ".dnssec.inception\$|_fw_proxy$|_graph_url\$",
+ contains => "^dns\.zone\$|^http-log4j\.properties\$|^cacheurl_voice-guidance-tts.config\$|^cacheurl_col-coam-ads-jitp.config\$|^cacheurl_cloudtv-web-comp.config\$",
+ },
+ };
+ my $nameExcludes=sprintf("%s|%s|%s", $excludes->{name}{prefix}, $excludes->{name}{suffix}, $excludes->{name}{contains});
+ InstallUtils::logger( "nameExcludes: " . $nameExcludes, "debug" );
+
+ my $valueExcludes=sprintf("%s", $excludes->{value}{contains});
+ InstallUtils::logger( "valueExcludes: " . $valueExcludes, "debug" );
+
+ my $configFileExcludes=sprintf("%s|%s|%s", $excludes->{config_file}{prefix}, $excludes->{config_file}{suffix}, $excludes->{config_file}{contains});
+ InstallUtils::logger( "configFileExcludes: " . $configFileExcludes, "debug" );
+
+ my $q=sprintf("SELECT * FROM profile as p
+ INNER JOIN profile_parameter as pp ON p.id = pp.profile
+ INNER JOIN parameter as param ON pp.parameter = param.id
+ WHERE p.name = '%s' AND
+ param.name !~ '%s' AND
+ param.value !~ '%s' AND
+ param.config_file !~ '%s'
+ order by param.name", $srcProfileName, $nameExcludes, $valueExcludes, $configFileExcludes);
+ InstallUtils::logger( "QUERY:" . $q . "\n", "debug" );
+ my $stmt = $dbh->prepare($q);
+ $stmt->execute();
+ my $insert;
+
+ while ( my $row = $stmt->fetchrow_hashref ) {
+
+ my $scrubbed_value = scrub_value($row->{value});
+ InstallUtils::logger( "scrubbed_value:" . $scrubbed_value . "\n", "debug" );
+ $insert=sprintf("INSERT INTO parameter (name, config_file, value) VALUES ('%s','%s','%s') ON CONFLICT (name, config_file, value) DO NOTHING;", $row->{name}, $row->{config_file}, $scrubbed_value);
+
+ appendToFile($fileName, $insert);
+ profileParameterInsert($srcProfileName, $targetProfileName, $row->{name}, $row->{value}, $row->{config_file}, $fileName);
+
+ }
+}
+
+sub scrub_value {
+ my $value = shift;
+ $value =~ s/ xmt="%\<\{X-MoneyTrace\}cqh>"//g;
+ return $value;
+}
+
+sub profileParameterInsert {
+
+ my $srcProfileName = shift;
+ my $targetProfileName = shift;
+ my $targetParameterName = shift;
+ my $targetParameterValue = shift;
+ my $configFile = shift;
+ my $fileName = shift;
+
+ my $insert=sprintf("INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = '%s'), (select id from parameter where name = '%s' and config_file = '%s' and value = '%s') ) ON CONFLICT (profile, parameter) DO NOTHING;\n", $targetProfileName, $targetParameterName, $configFile, $targetParameterValue );
+
+ #InstallUtils::logger( "insert: $insert", "debug" );
+ appendToFile($fileName, $insert);
+}
+
+
+sub profileInsert {
+
+ my $srcProfileName = shift;
+ my $targetProfileName = shift;
+ my $targetProfileDesc = shift;
+ my $fileName = shift;
+
+ my $q=sprintf("SELECT * FROM profile WHERE name = '%s' order by name;", $srcProfileName, $fileName);
+
+ InstallUtils::logger( "QUERY:" . $q, "debug" );
+ my $stmt = $dbh->prepare($q);
+ $stmt->execute();
+ my $name;
+ my $insert;
+
+ while ( my $row = $stmt->fetchrow_hashref ) {
+
+ #InstallUtils::logger( Dumper($row), "debug" );
+ $insert=sprintf("INSERT INTO profile (name, description, type) VALUES ('%s','%s','%s') ON CONFLICT (name) DO NOTHING;", $targetProfileName, $targetProfileDesc, $row->{type});
+ #InstallUtils::logger( "insert $insert", "debug" );
+ appendToFile($fileName, $insert);
+ }
+
+}
+
+sub generateInserts {
+
+ my $srcProfileName = shift;
+ my $targetProfileName = shift;
+ my $targetProfileDesc = shift;
+ my $configFile = shift;
+ my $fileName = shift;
+
+ profileInsert($srcProfileName, $targetProfileName, $targetProfileDesc, $fileName);
+ parameterInsert($srcProfileName, $targetProfileName, $fileName);
+}
+
+sub appendToFile {
+
+ my $filename = shift;
+ my $contents = shift;
+ open(my $fh, '>>', $outputFilePath) or die "Could not open file '$outputFilePath' $!";
+ say $fh $contents;
+ close $fh;
+}
+
+# -cfile - Input File: The input config file used to ask and answer questions
+# will look to the defaults for the answer. If the answer is not in the defaults
+# the script will exit
+# -defaults - Defaults: Writes out a configuration file with defaults which can be used as input
+# -debug - Debug Mode: More output to the terminal
+# -h - Help: Basic command line help menu
+
+sub main {
+ my $help = 0;
+
+ my $inputFile;
+
+ # help string
+ my $usageString = "Usage: $0 [-debug]\n";
+
+ GetOptions(
+ "cfile=s" => \$inputFile,
+ "debug" => \$debug,
+ "help" => \$help
+ ) or die($usageString);
+
+ if ($help) {
+ print $usageString;
+ return;
+ }
+
+ # check if the user running postinstall is root
+ if ( $ENV{USER} ne "root" ) {
+ errorOut("You must run this script as the root user");
+ }
+
+ InstallUtils::initLogger( $debug, $logFile );
+
+ InstallUtils::logger( "Starting export", "info" );
+
+ if ($debug) {
+ InstallUtils::logger( "Debug is on", "info" );
+ }
+
+ InstallUtils::rotateLog($logFile);
+
+ if ( -s $logFile > $maxLogSize ) {
+ InstallUtils::logger( "Postinstall log above max size of $maxLogSize bytes - rotating", "info" );
+ rotateLog($logFile);
+ }
+
+ $dbh = Database::connect($databaseConfFile);
+ my $latestProfiles = getLatestProfiles();
+ my $name;
+
+ my $lookupTable = {
+ latest_traffic_monitor => { profile => { name => "TM_PROFILE" ,
+ description => "Traffic Monitor" },
+ },
+ { parameter => { config_file => "rascal-config.txt",
+ description => "Traffic Monitor" },
+ },
+ latest_traffic_router => { profile => { name => "TR_PROFILE" ,
+ description => "Traffic Router" },
+ },
+ { parameter => { config_file => "CRConfig.json",
+ description => "Traffic Router" },
+ },
+ latest_traffic_stats => { profile => { name => "TS_PROFILE" ,
+ description => "Traffic Stats" },
+ },
+ latest_traffic_vault => { profile => { name => "TV_PROFILE" ,
+ description => "Traffic Vault" },
+ },
+ latest_trafficserver_edge => { profile => { name => "EDGE_PROFILE" ,
+ description => "Edge Cache" },
+ },
+ latest_trafficserver_mid => { profile => { name => "MID_PROFILE" ,
+ description => "Mid Cache" },
+ },
+ };
+
+ InstallUtils::logger( "Looking for latest profiles", "info" );
+ while ( my $row = $latestProfiles->fetchrow_hashref ) {
+
+ InstallUtils::logger( " row: " . Dumper($row), "info" );
+ my $name = $row->{'name'};
+ my $fileName = $row->{name}. ".sql";
+ my $srcProfileName = $row->{value};
+ $fileName =~ s/latest_//g;
+
+ if (exists $lookupTable->{$name}) {
+ my $profile = $lookupTable->{$name};
+ InstallUtils::logger( "=============================================", "debug");
+ InstallUtils::logger( "profile: " . Dumper($profile), "debug" );
+
+ my $targetProfileName = $profile->{profile}{name};
+ my $targetProfileDesc = $profile->{profile}{description};
+ my $targetParameterConfigFile = $profile->{parameter}{config_file};
+ InstallUtils::logger( "targetProfileName: $targetProfileName", "debug" );
+ $outputFilePath=sprintf("%s/%s", $pwd, $fileName);
+ unlink($outputFilePath);
+ generateInserts($srcProfileName, $targetProfileName, $targetProfileDesc, $targetParameterConfigFile, $fileName);
+ }
+ }
+
+
+ # Success!
+ $dbh->disconnect();
+}
+
+main;
+
+# vi:syntax=perl
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/load_profiles.sh
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/load_profiles.sh b/traffic_ops/install/data/profiles/load_profiles.sh
new file mode 100755
index 0000000..d842b0e
--- /dev/null
+++ b/traffic_ops/install/data/profiles/load_profiles.sh
@@ -0,0 +1 @@
+for f in /opt/traffic_ops/install/data/profiles/*.sql ; do psql -U traffic_ops -h localhost traffic_ops2 -f $f ; done
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/profile.global.traffic_ops
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/profile.global.traffic_ops b/traffic_ops/install/data/profiles/profile.global.traffic_ops
deleted file mode 100644
index 4872658..0000000
--- a/traffic_ops/install/data/profiles/profile.global.traffic_ops
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "parameters": [
- {
- "config_file": "global",
- "name": "tm.url",
- "value": "{{.TmUrl}}"
- },
- {
- "config_file": "global",
- "name": "tm.toolname",
- "value": "{{.TmToolName}}"
- },
- {
- "config_file": "global",
- "name": "tm.infourl",
- "value": "{{.TmInfoUrl}}"
- },
- {
- "config_file": "global",
- "name": "tm.logourl",
- "value": "/images/tc_logo.png"
- },
- {
- "config_file": "global",
- "name": "tm.instance_name",
- "value": "{{.TmInstanceName}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "geolocation.polling.url",
- "value": "{{.GeolocationPollingUrl}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "geolocation6.polling.url",
- "value": "{{.Geolocation6PollingUrl}}"
- },
- {
- "config_file": "global",
- "name": "daily_served_url",
- "value": "https://trafficstats.example.net/dashboard-solo/db/daily-summary?panelId=2&fullscreen&from=1349192564795&to=now"
- },
- {
- "config_file": "global",
- "name": "daily_bw_url",
- "value": "https://trafficstats.example.net/dashboard-solo/db/daily-summary?panelId=1&fullscreen&from=1349192564795&to=now"
- }
- ],
- "profile": {
- "description": "Global Traffic Ops profile, DO NOT DELETE",
- "name": "GLOBAL"
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/profile.traffic_monitor.traffic_ops
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/profile.traffic_monitor.traffic_ops b/traffic_ops/install/data/profiles/profile.traffic_monitor.traffic_ops
deleted file mode 100644
index df7897d..0000000
--- a/traffic_ops/install/data/profiles/profile.traffic_monitor.traffic_ops
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "parameters": [
- {
- "config_file": "rascal-config.txt",
- "name": "health.polling.interval",
- "value": "{{.HealthPollingInterval}}"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "tm.crConfig.polling.url",
- "value": "https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "tm.dataServer.polling.url",
- "value": "https://${tmHostname}/dataserver/orderby/id"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "tm.healthParams.polling.url",
- "value": "https://${tmHostname}/health/${cdnName}"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "tm.polling.interval",
- "value": "60000"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "location",
- "value": "/opt/traffic_monitor/conf"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "health.threadPool",
- "value": "4"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "health.event-count",
- "value": "200"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "hack.ttl",
- "value": "30"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "health.timepad",
- "value": "0"
- },
- {
- "config_file": "rascal-config.txt",
- "name": "peers.polling.interval",
- "value": "1000"
- }
- ],
- "profile": {
- "description": "Traffic Monitor",
- "name": "RASCAL_CDN1"
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/profile.traffic_router.traffic_ops
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/profile.traffic_router.traffic_ops b/traffic_ops/install/data/profiles/profile.traffic_router.traffic_ops
deleted file mode 100644
index 720a4dd..0000000
--- a/traffic_ops/install/data/profiles/profile.traffic_router.traffic_ops
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "parameters": [
- {
- "config_file": "geolocation.properties",
- "name": "location",
- "value": "/etc/comcast"
- },
- {
- "config_file": "inputs.conf",
- "name": "monitor:///opt/tomcat/logs/access.log",
- "value": "index=index_odol_test;sourcetype=access_ccr"
- },
- {
- "config_file": "CRConfig.json",
- "name": "geolocation.polling.url",
- "value": "{{.GeolocationPollingUrl}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "geolocation.polling.interval",
- "value": "86400000"
- },
- {
- "config_file": "CRConfig.json",
- "name": "coveragezone.polling.interval",
- "value": "86400000"
- },
- {
- "config_file": "CRConfig.json",
- "name": "coveragezone.polling.url",
- "value": "{{.CoveragezonePollingUrl}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "domain_name",
- "value": "{{.DomainName}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.AAAA",
- "value": "3600"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.A",
- "value": "3600"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.soa.expire",
- "value": "604800"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.soa.minimum",
- "value": "30"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.soa.admin",
- "value": "{{.TldSoaAdmin}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.soa.retry",
- "value": "7200"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.soa.refresh",
- "value": "28800"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.NS",
- "value": "3600"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.SOA",
- "value": "86400"
- },
- {
- "config_file": "server.xml",
- "name": "api.port",
- "value": "3333"
- },
- {
- "config_file": "CRConfig.json",
- "name": "api.cache-control.max-age",
- "value": "10"
- },
- {
- "config_file": "CRConfig.json",
- "name": "federationmapping.polling.url",
- "value": "https://${toHostname}/internal/api/1.2/federations.json"
- },
- {
- "config_file": "CRConfig.json",
- "name": "federationmapping.polling.interval",
- "value": "60000"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.DNSKEY",
- "value": "30"
- },
- {
- "config_file": "CRConfig.json",
- "name": "tld.ttls.DS",
- "value": "30"
- },
- {
- "config_file": "CRConfig.json",
- "name": "zonemanager.cache.maintenance.interval",
- "value": "300"
- },
- {
- "config_file": "CRConfig.json",
- "name": "keystore.maintenance.interval",
- "value": "300"
- },
- {
- "config_file": "CRConfig.json",
- "name": "dnssec.dynamic.response.expiration",
- "value": "300s"
- },
- {
- "config_file": "CRConfig.json",
- "name": "zonemanager.threadpool.scale",
- "value": "0.50"
- },
- {
- "config_file": "CRConfig.json",
- "name": "consistent.dns.routing",
- "value": "true"
- },
- {
- "config_file": "CRConfig.json",
- "name": "neustar.polling.url",
- "value": "http://www.example.net/neustar/latest.tar.gz"
- },
- {
- "config_file": "CRConfig.json",
- "name": "neustar.polling.interval",
- "value": "86400000"
- }
- ],
- "profile": {
- "description": "Traffic Router",
- "name": "CCR_CDN"
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/profile.trafficserver_edge.traffic_ops
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/profile.trafficserver_edge.traffic_ops b/traffic_ops/install/data/profiles/profile.trafficserver_edge.traffic_ops
deleted file mode 100644
index 10f80a6..0000000
--- a/traffic_ops/install/data/profiles/profile.trafficserver_edge.traffic_ops
+++ /dev/null
@@ -1,1648 +0,0 @@
-{
- "parameters": [
- {
- "config_file": "storage.config",
- "name": "Drive_Prefix",
- "value": "{{.DrivePrefix}}"
- },
- {
- "config_file": "storage.config",
- "name": "Drive_Letters",
- "value": "b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.proxy_name",
- "value": "STRING __HOSTNAME__"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.config_dir",
- "value": "STRING etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.proxy_binary_opts",
- "value": "STRING -M"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.env_prep",
- "value": "STRING example_prep.sh"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.temp_dir",
- "value": "STRING /tmp"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm_email",
- "value": "STRING ats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.syslog_facility",
- "value": "STRING LOG_DAEMON"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.output.logfile",
- "value": "STRING traffic.out"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.snapshot_dir",
- "value": "STRING snapshots"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.system.mmap_max",
- "value": "INT 2097152"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.autoconfig.scale",
- "value": "FLOAT 1.5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.accept_threads",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.admin_user",
- "value": "STRING admin"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.number_config_bak",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.user_id",
- "value": "STRING ats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.admin.autoconf_port",
- "value": "INT 8083"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.process_manager.mgmt_port",
- "value": "INT 8084"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm.bin",
- "value": "STRING example_alarm_bin.sh"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.alarm.abs_path",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_ports",
- "value": "STRING 443 563"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_request_via_str",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_response_via_str",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.response_server_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_age_in_response",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.enable_url_expandomatic",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.no_dns_just_forward_to_parent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.uncacheable_requests_bypass_parent",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_enabled_in",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_enabled_out",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.chunking_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.send_http11_requests",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.share_server_sessions",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.origin_server_pipeline",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.user_agent_pipeline",
- "value": "INT 8"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_filter",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_format_redirect",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.referer_default_redirect",
- "value": "STRING http://www.example.com/"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy_routing_enable",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.retry_time",
- "value": "INT 60"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.fail_threshold",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.total_connect_attempts",
- "value": "INT 4"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.forward.proxy_auth_to_parent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_no_activity_timeout_in",
- "value": "INT 115"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.keep_alive_no_activity_timeout_out",
- "value": "INT 120"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_no_activity_timeout_in",
- "value": "INT 30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_no_activity_timeout_out",
- "value": "INT 30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_active_timeout_in",
- "value": "INT 900"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.transaction_active_timeout_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.accept_no_activity_timeout",
- "value": "INT 120"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_max_retries",
- "value": "INT 6"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_max_retries_dead_server",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_rr_retries",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.connect_attempts_timeout",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.post_connect_attempts_timeout",
- "value": "INT 1800"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.down_server.cache_time",
- "value": "INT 300"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.down_server.abort_threshold",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.congestion_control.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_from",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_referer",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_user_agent",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_cookie",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_remove_client_ip",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_insert_client_ip",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.anonymize_other_header_list",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.insert_squid_x_forwarded_for",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.push_method_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.http",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_client_no_cache",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ims_on_client_no_cache",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_server_no_cache",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.normalize_ae_gzip",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.cache_responses_to_cookies",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_authentication",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.enable_default_vary_headers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.when_to_revalidate",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.required_headers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.max_stale_age",
- "value": "INT 604800"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.range.lookup",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_min_lifetime",
- "value": "INT 3600"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_max_lifetime",
- "value": "INT 86400"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.heuristic_lm_factor",
- "value": "FLOAT 0.10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.fuzz.time",
- "value": "INT 240"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.fuzz.probability",
- "value": "FLOAT 0.005"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_text",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_images",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.vary_default_other",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.enable_http_stats",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.enable_logging",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.response_suppression_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.connections_throttle",
- "value": "INT 500000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.defer_accept",
- "value": "INT 45"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.local.cluster.type",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.cluster_port",
- "value": "INT 8086"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.rsport",
- "value": "INT 8088"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mcport",
- "value": "INT 8089"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mc_group_addr",
- "value": "STRING 224.0.1.37"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.mc_ttl",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.log_bogus_mc_msgs",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.ethernet_interface",
- "value": "STRING lo"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.permit.pinning",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.algorithm",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.use_seen_filter",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.compress",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.limits.http.max_alts",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.target_fragment_size",
- "value": "INT 1048576"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.max_doc_size",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.min_average_object_size",
- "value": "INT 131072"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.threads_per_disk",
- "value": "INT 8"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.mutex_retry_delay",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.search_default_domains",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.splitDNS.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.max_dns_in_flight",
- "value": "INT 2048"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.url_expansions",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.round_robin_nameservers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.nameservers",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.resolv_conf",
- "value": "STRING /etc/resolv.conf"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dns.validate_query_name",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.timeout",
- "value": "INT 1440"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.strict_round_robin",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logging_enabled",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_secs_per_buffer",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_for_logs",
- "value": "INT 25000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_for_orphan_logs",
- "value": "INT 25"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.max_space_mb_headroom",
- "value": "INT 1000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.hostname",
- "value": "STRING localhost"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logfile_dir",
- "value": "STRING var/log/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.logfile_perm",
- "value": "STRING rw-r--r--"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.custom_logs_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_is_ascii",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_name",
- "value": "STRING squid"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.squid_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_is_ascii",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_name",
- "value": "STRING common"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.common_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_is_ascii",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_name",
- "value": "STRING extended"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_is_ascii",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_name",
- "value": "STRING extended2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_header",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.separate_icp_logs",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.separate_host_logs",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.local.log.collation_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_host",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_port",
- "value": "INT 8085"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_secret",
- "value": "STRING foobar"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_host_tagged",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.collation_retry_sec",
- "value": "INT 5"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_interval_sec",
- "value": "INT 86400"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_offset_hr",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.rolling_size_mb",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.auto_delete_rolled_files",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.sampling_frequency",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.reverse_proxy.enabled",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.header.parse.no_host_url_redirect",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.default_to_server_pac",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.default_to_server_pac_port",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.remap_required",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.pristine_host_hdr",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.number.threads",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.SSLv2",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.TLSv1",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.compression",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.certification_level",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cert_chain.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.CA.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.verify.server",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.private_key.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.CA.cert.filename",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.icp_interface",
- "value": "STRING NULL"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.icp_port",
- "value": "INT 3130"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.multicast_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.icp.query_timeout",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.force",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.retry_count",
- "value": "INT 10"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.retry_interval",
- "value": "INT 2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.update.concurrent_updates",
- "value": "INT 100"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_send_buffer_size_in",
- "value": "INT 262144"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_recv_buffer_size_in",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_send_buffer_size_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.sock_recv_buffer_size_out",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.core_limit",
- "value": "INT -1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.debug.enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.debug.tags",
- "value": "STRING http.*|dns.*"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.dump_mem_info_frequency",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.slow.log.threshold",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.task_threads",
- "value": "INT 2"
- },
- {
- "config_file": "hosting.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "parent.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "plugin.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "records.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "remap.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "storage.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "volume.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/"
- },
- {
- "config_file": "50-ats.rules",
- "name": "location",
- "value": "/etc/udev/rules.d/"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.file",
- "value": "STRING parent.config"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.url_remap.filename",
- "value": "STRING remap.config"
- },
- {
- "config_file": "ip_allow.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cluster.cluster_configuration ",
- "value": "STRING cluster.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.loadavg",
- "value": "{{.HealthThresholdLoadavg}}"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.availableBandwidthInKbps",
- "value": "{{.HealthThresholdAvailableBandwidthInKbps}}"
- },
- {
- "config_file": "rascal.properties",
- "name": "history.count",
- "value": "30"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.control.filename",
- "value": "STRING cache.config"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingEnabled",
- "value": "3"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingIntervalSec",
- "value": "86400"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingOffsetHr",
- "value": "11"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.RollingSizeMb",
- "value": "1024"
- },
- {
- "config_file": "logs_xml.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.xml_config_file",
- "value": "STRING logs_xml.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.threshold.queryTime",
- "value": "1000"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.polling.url",
- "value": "http://${hostname}/_astats?application=&inf.name=${interface_name}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Drive_Prefix",
- "value": "{{.RAMDrivePrefix}}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Drive_Letters",
- "value": "{{.RAMDriveLetters}}"
- },
- {
- "config_file": "storage.config",
- "name": "RAM_Volume",
- "value": "2"
- },
- {
- "config_file": "storage.config",
- "name": "Disk_Volume",
- "value": "1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.hosting_filename",
- "value": "STRING hosting.config"
- },
- {
- "config_file": "rascal.properties",
- "name": "health.connection.timeout",
- "value": "{{.HealthConnectionTimeout}}"
- },
- {
- "config_file": "CRConfig.json",
- "name": "domain_name",
- "value": "{{.DomainName}}"
- },
- {
- "config_file": "12M_facts",
- "name": "location",
- "value": "/opt/ort"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch",
- "value": "INT 1"
- },
- {
- "config_file": "chkconfig",
- "name": "trafficserver",
- "value": "0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.debug_filter",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.enable_reclaim",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.max_overage",
- "value": "INT 3"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.diags.show_location",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.allow_empty_doc",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "LOCAL proxy.config.cache.interim.storage",
- "value": "STRING NULL"
- },
- {
- "config_file": "plugin.config",
- "name": "regex_revalidate.so",
- "value": "--config regex_revalidate.config"
- },
- {
- "config_file": "regex_revalidate.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "plugin.config",
- "name": "remap_stats.so",
- "value": ""
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.stack_dump_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "drop_qstring.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.ttl_mode",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.serve_stale_for",
- "value": "INT 6"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.enable_read_while_writer",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.background_fill_active_timeout",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.background_fill_completed_threshold",
- "value": "FLOAT 0.0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.log.extended2_log_enabled",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.affinity",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.autoconfig",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.exec_thread.limit",
- "value": "INT 32"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.thread_freelist_size",
- "value": "INT 1024"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.mlock_enabled",
- "value": "INT 2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogFormat.Format",
- "value": "%<cqtq> chi=%<chi> phn=%<phn> php=%<php> shn=%<shn> url=%<cquuc> cqhm=%<cqhm> cqhv=%<cqhv> pssc=%<pssc> ttms=%<ttms> b=%<pscl> sssc=%<sssc> sscl=%<sscl> cfsc=%<cfsc> pfsc=%<pfsc> crc=%<crc> phr=%<phr> pqsn=%<pqsn> uas=\"%<{User-Agent}cqh>\" xmt=\"%<{X-MoneyTrace}cqh>\" "
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogFormat.Name",
- "value": "custom_ats_2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.Format",
- "value": "custom_ats_2"
- },
- {
- "config_file": "logs_xml.config",
- "name": "LogObject.Filename",
- "value": "custom_ats_2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache.size",
- "value": "INT 34359738368"
- },
- {
- "config_file": "plugin.config",
- "name": "astats_over_http.so",
- "value": ""
- },
- {
- "config_file": "astats.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "astats.config",
- "name": "path",
- "value": "_astats"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup",
- "value": "INT 0"
- },
- {
- "config_file": "parent.config",
- "name": "algorithm",
- "value": "consistent_hash"
- },
- {
- "config_file": "regex_revalidate.config",
- "name": "maxRevalDurationDays",
- "value": "90"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.ram_cache_cutoff",
- "value": "INT 1073741824"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cipher_suite",
- "value": "STRING ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:RC4-SHA:RC4-MD5:AES128-SHA:AES256-SHA:DES-CBC3-SHA!SRP:!DSS:!PSK:!aNULL:!eNULL:!SSLv2"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.honor_cipher_order",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.server_ports",
- "value": "STRING 80 80:ipv6 443:ssl 443:ipv6:ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.private_key.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.CA.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.private_key.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.client.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.CA.cert.path",
- "value": "STRING etc/trafficserver/ssl"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.SSLv3",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.ssl.server.multicert.filename",
- "value": "STRING ssl_multicert.config"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.hugepages",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.negative_caching_enabled",
- "value": "INT 1"
- },
- {
- "config_file": "astats.config",
- "name": "record_types",
- "value": "122"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.enable_customizations",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.negative_caching_lifetime",
- "value": "INT 1"
- },
- {
- "config_file": "traffic_ops_ort_syncds.cron",
- "name": "location",
- "value": "/etc/cron.d"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.body_factory.template_sets_dir",
- "value": "STRING etc/trafficserver/body_factory"
- },
- {
- "config_file": "set_dscp_0.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_10.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_12.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_14.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_18.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_20.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_22.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_26.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_28.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_30.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_34.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_36.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_38.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_8.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_16.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_24.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_32.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_40.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_48.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "set_dscp_56.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver/dscp"
- },
- {
- "config_file": "ssl_multicert.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "bg_fetch.config",
- "name": "location",
- "value": "/opt/trafficserver/etc/trafficserver"
- },
- {
- "config_file": "parent.config",
- "name": "qstring",
- "value": "ignore"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout",
- "value": "INT 5"
- },
- {
- "config_file": "CRConfig.json",
- "name": "weight",
- "value": "1.0"
- },
- {
- "config_file": "parent.config",
- "name": "weight",
- "value": "1.0"
- },
- {
- "config_file": "traffic_ops_ort_syncds.cron",
- "name": "cron_ort_syncds_cdn",
- "value": "{{.CronOrtSyncds}}"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.cache.hostdb.sync_frequency",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.guaranteed_max_lifetime",
- "value": "INT 2592000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.cache.ignore_client_cc_max_age",
- "value": "INT 1"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.allocator.dontdump_iobuffers",
- "value": "INT 0"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.size",
- "value": "INT 2048000"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.hostdb.storage_size",
- "value": "INT 774152192"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.net.default_inactivity_timeout",
- "value": "INT 180"
- },
- {
- "config_file": "package",
- "name": "astats_over_http",
- "value": "1.3.0-0.7c20cd1.el7.centos.x86_64"
- },
- {
- "config_file": "package",
- "name": "astats_over_http-debuginfo",
- "value": "1.3.0-0.7c20cd1.el7.centos.x86_64"
- },
- {
- "config_file": "records.config",
- "name": "CONFIG proxy.config.http.update_hostdb_on_parent_proxy_connect_errors",
- "value": "INT 0"
- },
- {
- "config_file": "package",
- "name": "trafficserver",
- "value": "6.2.1-11.1863491.el7.centos.x86_64"
- },
- {
- "config_file": "package",
- "name": "trafficserver-debuginfo",
- "value": "6.2.1-11.1863491.el7.centos.x86_64"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_masklen_v6",
- "value": "40"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_number_v6",
- "value": "5"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_number_v4",
- "value": "5"
- },
- {
- "config_file": "ip_allow.config",
- "name": "coalesce_masklen_v4",
- "value": "16"
- }
- ],
- "profile": {
- "description": "TrafficServer Edge profile",
- "name": "EDGE1_CDN_721-ATS621"
- }
-}
[26/27] incubator-trafficcontrol git commit: cleaned up formatting
Posted by da...@apache.org.
cleaned up formatting
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d94601a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d94601a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d94601a0
Branch: refs/heads/master
Commit: d94601a0ee5f0c22636987ea92fd817a1ea41a68
Parents: 7c8b8fa
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 15:29:33 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
.../install/data/profiles/traffic_monitor.sql | 24 ++++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d94601a0/traffic_ops/install/data/profiles/traffic_monitor.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/traffic_monitor.sql b/traffic_ops/install/data/profiles/traffic_monitor.sql
index e597270..14db5dd 100644
--- a/traffic_ops/install/data/profiles/traffic_monitor.sql
+++ b/traffic_ops/install/data/profiles/traffic_monitor.sql
@@ -1,37 +1,37 @@
INSERT INTO profile (name, description, type) VALUES ('TM_PROFILE','Traffic Monitor','TM_PROFILE') ON CONFLICT (name) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('hack.ttl','rascal-config.txt','30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('hack.ttl','rascal-config.txt','30') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'hack.ttl' and config_file = 'rascal-config.txt' and value = '30') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('health.event-count','rascal-config.txt','200') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('health.event-count','rascal-config.txt','200') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.event-count' and config_file = 'rascal-config.txt' and value = '200') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('health.polling.interval','rascal-config.txt','6000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('health.polling.interval','rascal-config.txt','6000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.polling.interval' and config_file = 'rascal-config.txt' and value = '6000') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('health.threadPool','rascal-config.txt','4') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('health.threadPool','rascal-config.txt','4') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.threadPool' and config_file = 'rascal-config.txt' and value = '4') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('health.timepad','rascal-config.txt','0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('health.timepad','rascal-config.txt','0') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'health.timepad' and config_file = 'rascal-config.txt' and value = '0') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('heartbeat.polling.interval','rascal-config.txt','2000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('heartbeat.polling.interval','rascal-config.txt','2000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'heartbeat.polling.interval' and config_file = 'rascal-config.txt' and value = '2000') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('location','rascal-config.txt','/opt/traffic_monitor/conf') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('location','rascal-config.txt','/opt/traffic_monitor/conf') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'location' and config_file = 'rascal-config.txt' and value = '/opt/traffic_monitor/conf') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('peers.polling.interval','rascal-config.txt','1000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('peers.polling.interval','rascal-config.txt','1000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'peers.polling.interval' and config_file = 'rascal-config.txt' and value = '1000') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('tm.crConfig.polling.url','rascal-config.txt','https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.crConfig.polling.url','rascal-config.txt','https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.crConfig.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/CRConfig-Snapshots/${cdnName}/CRConfig.xml') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('tm.dataServer.polling.url','rascal-config.txt','https://${tmHostname}/dataserver/orderby/id') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.dataServer.polling.url','rascal-config.txt','https://${tmHostname}/dataserver/orderby/id') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.dataServer.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/dataserver/orderby/id') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('tm.healthParams.polling.url','rascal-config.txt','https://${tmHostname}/health/${cdnName}') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.healthParams.polling.url','rascal-config.txt','https://${tmHostname}/health/${cdnName}') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.healthParams.polling.url' and config_file = 'rascal-config.txt' and value = 'https://${tmHostname}/health/${cdnName}') ) ON CONFLICT (profile, parameter) DO NOTHING;
-INSERT INTO parameter (name, config_file, value) VALUES ('tm.polling.interval','rascal-config.txt','60000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('tm.polling.interval','rascal-config.txt','60000') ON CONFLICT (name, config_file, value) DO NOTHING;
INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'TM_PROFILE'), (select id from parameter where name = 'tm.polling.interval' and config_file = 'rascal-config.txt' and value = '60000') ) ON CONFLICT (profile, parameter) DO NOTHING;
[20/27] incubator-trafficcontrol git commit: replaced by
export_profiles.pl
Posted by da...@apache.org.
replaced by export_profiles.pl
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7c8b8faf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7c8b8faf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7c8b8faf
Branch: refs/heads/master
Commit: 7c8b8faff8ee2c9dfde745afbd79827167338064
Parents: 0351e1b
Author: Dewayne Richardson <de...@apache.org>
Authored: Mon May 8 15:06:42 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/get_parameters.go | 377 -------------------------
1 file changed, 377 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c8b8faf/traffic_ops/install/bin/get_parameters.go
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/get_parameters.go b/traffic_ops/install/bin/get_parameters.go
deleted file mode 100644
index 3e05864..0000000
--- a/traffic_ops/install/bin/get_parameters.go
+++ /dev/null
@@ -1,377 +0,0 @@
-
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-
-// http://www.apache.org/licenses/LICENSE-2.0
-
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// get_parameters.go gets the Traffic Ops parameters for the given profile, and prints the JSON for a new profile ready to import, with the given name and description
-
-// Example usage:
-// go run get_parameters.go -t http://mycdn.comcast.net:3000 -u admin -p password -r GLOBAL -n NEW_GLOBAL -d "My New Global Profile" > global.profile.traffic_ops
-
-package main
-
-import (
- "bytes"
- "encoding/json"
- "errors"
- "flag"
- "fmt"
- "net/http"
- "strings"
-)
-
-var trafficOpsUri string
-var trafficOpsUser string
-var trafficOpsPass string
-var oldProfile string
-var newProfile string
-var newProfileDesc string
-
-func init() {
- flag.StringVar(&trafficOpsUri, "traffic-ops-uri", "", "Traffic Ops URI, including protocol")
- flag.StringVar(&trafficOpsUri, "t", "", "Traffic Ops URI, including protocol (shorthand)")
- flag.StringVar(&trafficOpsUser, "user", "", "Traffic Ops username")
- flag.StringVar(&trafficOpsUser, "u", "", "Traffic Ops username (shorthand)")
- flag.StringVar(&trafficOpsPass, "password", "", "Traffic Ops password")
- flag.StringVar(&trafficOpsPass, "p", "", "Traffic Ops password (shorthand)")
- flag.StringVar(&oldProfile, "profile", "", "profile type to get")
- flag.StringVar(&oldProfile, "r", "", "profile to get (shorthand)")
- flag.StringVar(&newProfile, "name", "", "name of the profile to create")
- flag.StringVar(&newProfile, "n", "", "name of the profile to create (shorthand)")
- flag.StringVar(&newProfileDesc, "description", "", "description of the profile to create")
- flag.StringVar(&newProfileDesc, "d", "", "description of the profile to create (shorthand)")
- flag.Parse()
-}
-
-type JsonTrafficOpsLogin struct {
- User string `json:"u"`
- Password string `json:"p"`
-}
-
-const LoginCookieName = "mojolicious"
-
-func getLoginCookie(cookies []*http.Cookie) (string, error) {
-
- for _, cookie := range cookies {
- if cookie.Name != LoginCookieName {
- continue
- }
- return cookie.Value, nil
- }
-
- return "", errors.New("The " + LoginCookieName + " login cookie was not returned. Login failed?")
-}
-
-const apiPath = "/api/1.2/"
-
-// login logs in to the Traffic Ops API and returns the login cookie
-func login(uri, user, pass string) (string, error) {
- loginPath := apiPath + "user/login"
- trafficOpsUri = strings.TrimRight(trafficOpsUri, "/")
-
- loginBytes, err := json.Marshal(struct {
- User string `json:"u"`
- Pass string `json:"p"`
- }{User: trafficOpsUser, Pass: trafficOpsPass})
- if err != nil {
- return "", err
- }
-
- loginResp, err := http.Post(trafficOpsUri+loginPath, "application/json", bytes.NewReader(loginBytes))
- if err != nil {
- return "", err
- }
-
- return getLoginCookie(loginResp.Cookies())
-}
-
-type JsonParameter struct {
- LastUpdated string `json:"lastUpdated"`
- Value string `json:"value"`
- Name string `json:"name"`
- ConfigFile string `json:"configFile"`
-}
-
-// JsonProfile represents the JSON returned by Traffic Ops /api/1.2/parameters/profile
-type JsonProfile struct {
- Response []JsonParameter `json:"response"`
-}
-
-type JsonImportProfileProfile struct {
- Name string `json:"name"`
- Description string `json:"description"`
-}
-
-type JsonImportProfileParameter struct {
- Value string `json:"value"`
- Name string `json:"name"`
- ConfigFile string `json:"config_file"`
-}
-
-// JsonProfile represents the JSON expected by Traffic Ops /profile/doImport
-type JsonImportProfile struct {
- Parameters []JsonImportProfileParameter `json:"parameters"`
- Profile JsonImportProfileProfile `json:"profile"`
-}
-
-type JsonParametersProfile struct {
- Response []JsonImportProfileParameter `json:"response"`
-}
-
-func getLatestProfile(uri, loginCookie, profileType string) (string, error) {
- if profileType == "global" {
- return "GLOBAL", nil
- }
-
- latestProfileName := "latest_" + profileType
- parametersProfilePath := apiPath + "parameters/profile/GLOBAL.json"
-
- client := &http.Client{}
-
- uri = strings.TrimRight(uri, "/")
- req, err := http.NewRequest("GET", uri+parametersProfilePath, nil)
- req.AddCookie(&http.Cookie{Name: LoginCookieName, Value: loginCookie})
- resp, err := client.Do(req)
- if err != nil {
- return "", err
- }
-
- var paramProfile JsonParametersProfile
- err = json.NewDecoder(resp.Body).Decode(¶mProfile)
- if err != nil {
- return "", err
- }
-
- for _, param := range paramProfile.Response {
- if param.Name == latestProfileName {
- return param.Value, nil
- }
- }
-
- return "", errors.New("profile not found")
-}
-
-func getProfile(uri, loginCookie, profileName string) (JsonProfile, error) {
- profilePath := apiPath + "parameters/profile/"
-
- client := &http.Client{}
-
- uri = strings.TrimRight(uri, "/")
- req, err := http.NewRequest("GET", uri+profilePath+profileName+".json", nil)
- req.AddCookie(&http.Cookie{Name: LoginCookieName, Value: loginCookie})
- resp, err := client.Do(req)
- if err != nil {
- return JsonProfile{}, err
- }
-
- var profile JsonProfile
- err = json.NewDecoder(resp.Body).Decode(&profile)
- if err != nil {
- return JsonProfile{}, err
- }
- return profile, nil
-}
-
-func profileToImportProfile(profile JsonProfile, name string, description string) JsonImportProfile {
- var params []JsonImportProfileParameter
- for _, param := range profile.Response {
- params = append(params, JsonImportProfileParameter{Name: param.Name, Value: param.Value, ConfigFile: param.ConfigFile})
- }
- return JsonImportProfile{Parameters: params, Profile: JsonImportProfileProfile{Name: name, Description: description}}
-}
-
-func validProfileTypes() map[string]struct{} {
- return map[string]struct{}{
- "global": struct{}{},
- "trafficserver_edge": struct{}{},
- "trafficserver_mid": struct{}{},
- "traffic_stats": struct{}{},
- "traffic_monitor": struct{}{},
- "traffic_vault": struct{}{},
- "traffic_router": struct{}{},
- }
-}
-
-func processDelete(param JsonParameter) bool {
- configFilePrefixes := map[string]struct{}{
- "url_sig_": struct{}{},
- "regex_remap_": struct{}{},
- "hdr_rw_": struct{}{},
- }
- configFiles := map[string]struct{}{
- "dns.zone": struct{}{},
- "http-log4j.properties": struct{}{},
- "dns-log4j.properties": struct{}{},
- }
- names := map[string]struct{}{
- "allow_ip": struct{}{},
- "allow_ip6": struct{}{},
- "purge_allow_ip": struct{}{},
- "ramdisk_size": struct{}{},
- }
- nameSuffixes := map[string]struct{}{
- ".dnssec.inception": struct{}{},
- "_fwd_proxy": struct{}{},
- "_graph_url": struct{}{},
- }
- namePrefixes := map[string]struct{}{
- "visual_status_panel": struct{}{},
- "latest_": struct{}{},
- }
-
- for prefix, _ := range configFilePrefixes {
- if strings.HasPrefix(param.ConfigFile, prefix) {
- return true
- }
- }
- for configFile, _ := range configFiles {
- if param.ConfigFile == configFile {
- return true
- }
- }
- for name, _ := range names {
- if param.Name == name {
- return true
- }
- }
- for prefix, _ := range namePrefixes {
- if strings.HasPrefix(param.Name, prefix) {
- return true
- }
- }
-
- for suffix, _ := range nameSuffixes {
- if strings.HasSuffix(param.Name, suffix) {
- return true
- }
- }
-
- if strings.HasPrefix(param.ConfigFile, "cacheurl_") && param.ConfigFile != "cacheurl_qstring" {
- return true
- }
-
- return false
-}
-
-func processModify(param JsonParameter) JsonParameter {
- if param.Name == "LogFormat.Format" {
- param.Value = strings.Replace(param.Value, `xmt=\"%<{X-MoneyTrace}cqh>\"`, "", -1)
- return param
- }
-
- if strings.HasPrefix(param.Name, "cron_ort_syncds_") {
- param.Value = "{{.CronOrtSyncds}}"
- param.Name = "cron_ort_syncds_cdn" // TODO(`cdn` is the name of the CDN; handle different names?)
- return param
- }
-
- nameValueReplacements := map[string]string{
- "domain_name": "{{.DomainName}}",
- "Drive_Prefix": "{{.DrivePrefix}}",
- "RAM_Drive_Prefix": "{{.RAMDrivePrefix}}",
- "RAM_Drive_Letters": "{{.RAMDriveLetters}}",
- "health.connection.timeout": "{{.HealthConnectionTimeout}}",
- "health.threshold.loadavg": "{{.HealthThresholdLoadavg}}",
- "health.threshold.availableBandwidthInKbps": "{{.HealthThresholdAvailableBandwidthInKbps}}",
- "health.polling.interval": "{{.HealthPollingInterval}}",
- "geolocation.polling.url": "{{.GeolocationPollingUrl}}",
- "coveragezone.polling.url": "{{.CoveragezonePollingUrl}}",
- "tld.soa.admin": "{{.TldSoaAdmin}}",
- "geolocation6.polling.url": "{{.Geolocation6PollingUrl}}",
- "tm.infourl": "{{.TmInfoUrl}}",
- "tm.instance_name": "{{.TmInstanceName}}",
- "tm.toolname": "{{.TmToolName}}",
- "tm.url": "{{.TmUrl}}",
- }
-
- for name, valueReplacement := range nameValueReplacements {
- if param.Name != name {
- continue
- }
- param.Value = valueReplacement
- return param
- }
- return param
-}
-
-// process removes unnecessary parameters, and
-// replaces CDN-specific parameters with text/template delimited template actions
-func process(profile JsonProfile) JsonProfile {
- // This could keep track of the index and delete in-place, if performance mattered.
- var newProfile JsonProfile
- for _, param := range profile.Response {
- if processDelete(param) {
- continue
- }
- param = processModify(param)
- newProfile.Response = append(newProfile.Response, param)
- }
- return newProfile
-
- // type JsonParameter struct {
- // LastUpdated string `json:"lastUpdated"`
- // Value string `json:"value"`
- // Name string `json:"name"`
- // ConfigFile string `json:"configFile"`
- // }
-
-}
-
-func printExampleUsage() {
- typeStr := "{"
- for profileType, _ := range validProfileTypes() {
- typeStr += profileType + "|"
- }
- typeStr = typeStr[:len(typeStr)-1] + "}"
-
- fmt.Println(`Example: get_parameters -d "My Edge Cache" -n "EDGE1_CDN_520" -u admin -p mypass -r ` + typeStr + ` -t http://my-cdn-domain.com:3000 > edge_profile.traffic_ops`)
-}
-
-func main() {
- oldProfile = strings.ToLower(oldProfile)
-
- validTypes := validProfileTypes()
- if _, isProfileTypeValid := validTypes[oldProfile]; trafficOpsUri == "" || trafficOpsUser == "" || trafficOpsPass == "" || !isProfileTypeValid || newProfile == "" {
- flag.Usage()
- fmt.Print("\n")
- printExampleUsage()
- return
- }
-
- loginCookie, err := login(trafficOpsUri, trafficOpsUser, trafficOpsPass)
- if err != nil {
- fmt.Println(err)
- return
- }
-
- latestProfile, err := getLatestProfile(trafficOpsUri, loginCookie, oldProfile)
- if err != nil {
- fmt.Println(err)
- return
- }
-
- profile, err := getProfile(trafficOpsUri, loginCookie, latestProfile)
- if err != nil {
- fmt.Println(err)
- return
- }
-
- processedProfile := process(profile)
- importProfile := profileToImportProfile(processedProfile, newProfile, newProfileDesc)
-
- profileBytes, err := json.Marshal(importProfile)
- if err != nil {
- fmt.Println(err)
- return
- }
-
- fmt.Printf("%s", profileBytes)
-}
[14/27] incubator-trafficcontrol git commit: removed unused subroutine
Posted by da...@apache.org.
removed unused subroutine
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/f173d5be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/f173d5be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/f173d5be
Branch: refs/heads/master
Commit: f173d5beb675fb4177534dd4c63896a789883e90
Parents: f129bf6
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri May 5 08:37:44 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/_postinstall | 5 -----
1 file changed, 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/f173d5be/traffic_ops/install/bin/_postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/_postinstall b/traffic_ops/install/bin/_postinstall
index 37e47e3..96149a9 100755
--- a/traffic_ops/install/bin/_postinstall
+++ b/traffic_ops/install/bin/_postinstall
@@ -79,11 +79,6 @@ my $inputFile = "";
my $automatic = 0;
my $defaultInputs;
-sub getInstallPath {
- my $relPath = shift;
- return join( '/', "/tmp/traffic_ops", $relPath );
-}
-
# given a var to the hash of config_var and question, will return the question
sub getConfigQuestion {
my $var = shift;
[06/27] incubator-trafficcontrol git commit: added Postgres Bootstrap
script for streamlining setup
Posted by da...@apache.org.
added Postgres Bootstrap script for streamlining setup
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/775078cb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/775078cb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/775078cb
Branch: refs/heads/master
Commit: 775078cb15c645a73945aa9a61c6764afb3c0a50
Parents: d3bbaec
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:01:42 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/todb_bootstrap.sh | 33 ++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/775078cb/traffic_ops/install/bin/todb_bootstrap.sh
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/todb_bootstrap.sh b/traffic_ops/install/bin/todb_bootstrap.sh
new file mode 100755
index 0000000..2de2d03
--- /dev/null
+++ b/traffic_ops/install/bin/todb_bootstrap.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+
+# To bypass the password prompts for automation, please set TODB_USERNAME_PASSWORD=<yourpassword> before you invoke
+
+# Example:
+#
+# $ TODB_USERNAME_PASSWORD=<yourpassword> ./todb_bootstrap.sh
+#
+TODB_USERNAME=traffic_ops
+TODB_NAME=traffic_ops
+
+if [[ -z $TODB_USERNAME ]]; then
+ echo "Using environment database user: $TODB_USERNAME"
+fi
+
+if [[ -z $TODB_USERNAME_PASSWORD ]]; then
+ while true; do
+ read -s -p "Please ENTER the new password for database user '$TODB_USERNAME': " password
+ echo
+ read -s -p "Please CONFIRM enter the new password for database user '$TODB_USERNAME' again: " password_confirm
+ echo
+ [ "$password" = "$password_confirm" ] && break
+ echo "Passwords do not match, please try again"
+ done
+ TODB_USERNAME_PASSWORD=$password
+else
+ echo "Using environment database password"
+fi
+echo "Setting up database role: $TODB_USERNAME"
+psql -U postgres -h localhost -c "CREATE USER $TODB_USERNAME WITH ENCRYPTED PASSWORD '$TODB_USERNAME_PASSWORD';"
+createdb $TODB_NAME --owner $TODB_USERNAME -U postgres -h localhost
+
+echo "Successfully set up database '$TODB_NAME' with role '$TODB_USERNAME'"
[17/27] incubator-trafficcontrol git commit: successfully demo'd
postinstall after lots of testing
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0351e1b1/traffic_ops/install/data/profiles/trafficserver_edge.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/trafficserver_edge.sql b/traffic_ops/install/data/profiles/trafficserver_edge.sql
new file mode 100644
index 0000000..b65e4ba
--- /dev/null
+++ b/traffic_ops/install/data/profiles/trafficserver_edge.sql
@@ -0,0 +1,1000 @@
+INSERT INTO profile (name, description, type) VALUES ('EDGE_PROFILE','Edge Cache','ATS_PROFILE') ON CONFLICT (name) DO NOTHING;
+INSERT INTO parameter (name, config_file, value) VALUES ('algorithm','parent.config','consistent_hash') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'algorithm' and config_file = 'parent.config' and value = 'consistent_hash') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http','package','1.3.0-9.2f10390.el7.centos.x86_64') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'astats_over_http' and config_file = 'package' and value = '1.3.0-9.2f10390.el7.centos.x86_64') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http-debuginfo','package','1.3.0-9.2f10390.el7.centos.x86_64') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'astats_over_http-debuginfo' and config_file = 'package' and value = '1.3.0-9.2f10390.el7.centos.x86_64') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('astats_over_http.so','plugin.config','') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'astats_over_http.so' and config_file = 'plugin.config' and value = '') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v4','ip_allow.config','16') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v4' and config_file = 'ip_allow.config' and value = '16') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_masklen_v6','ip_allow.config','40') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'coalesce_masklen_v6' and config_file = 'ip_allow.config' and value = '40') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v4','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'coalesce_number_v4' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('coalesce_number_v6','ip_allow.config','5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'coalesce_number_v6' and config_file = 'ip_allow.config' and value = '5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.accept_threads','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.accept_threads' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.admin_user','records.config','STRING admin') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.admin_user' and config_file = 'records.config' and value = 'STRING admin') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.autoconf_port','records.config','INT 8083') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.autoconf_port' and config_file = 'records.config' and value = 'INT 8083') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.number_config_bak','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.number_config_bak' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.admin.user_id','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.admin.user_id' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.abs_path','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.abs_path' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm.bin','records.config','STRING example_alarm_bin.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm.bin' and config_file = 'records.config' and value = 'STRING example_alarm_bin.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.alarm_email','records.config','STRING ats') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.alarm_email' and config_file = 'records.config' and value = 'STRING ats') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.debug_filter','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.debug_filter' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.dontdump_iobuffers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.dontdump_iobuffers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.enable_reclaim','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.enable_reclaim' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.hugepages','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.hugepages' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.max_overage','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.max_overage' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.allocator.thread_freelist_size','records.config','INT 1024') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.allocator.thread_freelist_size' and config_file = 'records.config' and value = 'INT 1024') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_customizations','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_customizations' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.enable_logging','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.enable_logging' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.response_suppression_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.response_suppression_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.body_factory.template_sets_dir','records.config','STRING etc/trafficserver/body_factory') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.body_factory.template_sets_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver/body_factory') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.control.filename','records.config','STRING cache.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.control.filename' and config_file = 'records.config' and value = 'STRING cache.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.enable_read_while_writer','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.enable_read_while_writer' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.hostdb.sync_frequency','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.hostdb.sync_frequency' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.hosting_filename','records.config','STRING hosting.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.hosting_filename' and config_file = 'records.config' and value = 'STRING hosting.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.http.compatibility.4-2-0-fixup' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.limits.http.max_alts','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.limits.http.max_alts' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.max_doc_size','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.max_doc_size' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.min_average_object_size','records.config','INT 131072') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.min_average_object_size' and config_file = 'records.config' and value = 'INT 131072') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.mutex_retry_delay','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.mutex_retry_delay' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.permit.pinning','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.permit.pinning' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.algorithm','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.algorithm' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.compress','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.compress' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache_cutoff','records.config','INT 1073741824') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache_cutoff' and config_file = 'records.config' and value = 'INT 1073741824') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.size','records.config','INT 34359738368') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.size' and config_file = 'records.config' and value = 'INT 34359738368') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.ram_cache.use_seen_filter','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.ram_cache.use_seen_filter' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.target_fragment_size','records.config','INT 1048576') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.target_fragment_size' and config_file = 'records.config' and value = 'INT 1048576') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cache.threads_per_disk','records.config','INT 8') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cache.threads_per_disk' and config_file = 'records.config' and value = 'INT 8') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_configuration ','records.config','STRING cluster.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_configuration ' and config_file = 'records.config' and value = 'STRING cluster.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.cluster_port','records.config','INT 8086') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.cluster_port' and config_file = 'records.config' and value = 'INT 8086') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.ethernet_interface','records.config','STRING lo') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.ethernet_interface' and config_file = 'records.config' and value = 'STRING lo') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.log_bogus_mc_msgs','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.log_bogus_mc_msgs' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_group_addr','records.config','STRING 224.0.1.37') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_group_addr' and config_file = 'records.config' and value = 'STRING 224.0.1.37') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mcport','records.config','INT 8089') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mcport' and config_file = 'records.config' and value = 'INT 8089') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.mc_ttl','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.mc_ttl' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.cluster.rsport','records.config','INT 8088') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.cluster.rsport' and config_file = 'records.config' and value = 'INT 8088') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.config_dir','records.config','STRING etc/trafficserver') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.config_dir' and config_file = 'records.config' and value = 'STRING etc/trafficserver') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.core_limit','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.core_limit' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.debug.tags','records.config','STRING http.*|dns.*') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.debug.tags' and config_file = 'records.config' and value = 'STRING http.*|dns.*') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.diags.show_location','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.diags.show_location' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.max_dns_in_flight','records.config','INT 2048') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.max_dns_in_flight' and config_file = 'records.config' and value = 'INT 2048') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.nameservers','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.nameservers' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.resolv_conf','records.config','STRING /etc/resolv.conf') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.resolv_conf' and config_file = 'records.config' and value = 'STRING /etc/resolv.conf') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.round_robin_nameservers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.round_robin_nameservers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.search_default_domains','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.search_default_domains' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.splitDNS.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.splitDNS.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.url_expansions','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.url_expansions' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dns.validate_query_name','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dns.validate_query_name' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.dump_mem_info_frequency','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.dump_mem_info_frequency' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.env_prep','records.config','STRING example_prep.sh') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.env_prep' and config_file = 'records.config' and value = 'STRING example_prep.sh') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.affinity','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.affinity' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.autoconfig.scale','records.config','FLOAT 1.5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.autoconfig.scale' and config_file = 'records.config' and value = 'FLOAT 1.5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.exec_thread.limit','records.config','INT 32') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.exec_thread.limit' and config_file = 'records.config' and value = 'INT 32') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.header.parse.no_host_url_redirect','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.header.parse.no_host_url_redirect' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.serve_stale_for','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.serve_stale_for' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.size','records.config','INT 2048000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.size' and config_file = 'records.config' and value = 'INT 2048000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.storage_size','records.config','INT 774152192') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.storage_size' and config_file = 'records.config' and value = 'INT 774152192') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.strict_round_robin','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.strict_round_robin' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.timeout','records.config','INT 1440') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.timeout' and config_file = 'records.config' and value = 'INT 1440') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.hostdb.ttl_mode','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.hostdb.ttl_mode' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.accept_no_activity_timeout','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.accept_no_activity_timeout' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_insert_client_ip','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_insert_client_ip' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_other_header_list','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_other_header_list' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_client_ip','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_client_ip' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_cookie','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_cookie' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_from','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_from' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_referer','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_referer' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.anonymize_remove_user_agent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.anonymize_remove_user_agent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_active_timeout','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_active_timeout' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.background_fill_completed_threshold','records.config','FLOAT 0.0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.background_fill_completed_threshold' and config_file = 'records.config' and value = 'FLOAT 0.0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.allow_empty_doc','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.allow_empty_doc' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_responses_to_cookies','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_responses_to_cookies' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.enable_default_vary_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.enable_default_vary_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.probability','records.config','FLOAT 0.005') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.probability' and config_file = 'records.config' and value = 'FLOAT 0.005') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.fuzz.time','records.config','INT 240') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.fuzz.time' and config_file = 'records.config' and value = 'INT 240') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.guaranteed_max_lifetime','records.config','INT 2592000') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.guaranteed_max_lifetime' and config_file = 'records.config' and value = 'INT 2592000') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_lm_factor','records.config','FLOAT 0.10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_lm_factor' and config_file = 'records.config' and value = 'FLOAT 0.10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_max_lifetime','records.config','INT 86400') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_max_lifetime' and config_file = 'records.config' and value = 'INT 86400') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.heuristic_min_lifetime','records.config','INT 3600') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.heuristic_min_lifetime' and config_file = 'records.config' and value = 'INT 3600') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.http','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.http' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_authentication','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_authentication' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_cc_max_age','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_cc_max_age' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ignore_server_no_cache','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ignore_server_no_cache' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.ims_on_client_no_cache','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.ims_on_client_no_cache' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.max_stale_age','records.config','INT 604800') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.max_stale_age' and config_file = 'records.config' and value = 'INT 604800') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.range.lookup','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.range.lookup' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.required_headers','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.required_headers' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_images','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_images' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_other','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_other' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.vary_default_text','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.vary_default_text' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests','records.config','INT -1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_add_no_cache_to_msie_requests' and config_file = 'records.config' and value = 'INT -1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.cache.when_to_revalidate','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.cache.when_to_revalidate' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.chunking_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.chunking_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.congestion_control.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.congestion_control.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries','records.config','INT 6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries' and config_file = 'records.config' and value = 'INT 6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_max_retries_dead_server','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_max_retries_dead_server' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_rr_retries','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_rr_retries' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_attempts_timeout','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.connect_ports','records.config','STRING 443 563') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.connect_ports' and config_file = 'records.config' and value = 'STRING 443 563') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.abort_threshold','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.abort_threshold' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.down_server.cache_time','records.config','INT 300') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.down_server.cache_time' and config_file = 'records.config' and value = 'INT 300') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_http_stats','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_http_stats' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.enable_url_expandomatic','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.enable_url_expandomatic' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.forward.proxy_auth_to_parent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.forward.proxy_auth_to_parent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_age_in_response','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_age_in_response' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_request_via_str','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_request_via_str' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_response_via_str','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_response_via_str' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.insert_squid_x_forwarded_for','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.insert_squid_x_forwarded_for' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_in','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_in' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_enabled_out','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_enabled_out' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_in','records.config','INT 115') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_in' and config_file = 'records.config' and value = 'INT 115') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.keep_alive_no_activity_timeout_out','records.config','INT 120') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.keep_alive_no_activity_timeout_out' and config_file = 'records.config' and value = 'INT 120') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.negative_caching_lifetime','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.negative_caching_lifetime' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.no_dns_just_forward_to_parent','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.no_dns_just_forward_to_parent' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.normalize_ae_gzip','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.normalize_ae_gzip' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.origin_server_pipeline','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.origin_server_pipeline' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout','records.config','INT 3') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 3') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.fail_threshold','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.fail_threshold' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.file','records.config','STRING parent.config') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.file' and config_file = 'records.config' and value = 'STRING parent.config') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.mark_down_hostdb','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.mark_down_hostdb' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.per_parent_connect_attempts' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.retry_time','records.config','INT 60') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.retry_time' and config_file = 'records.config' and value = 'INT 60') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy_routing_enable','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy_routing_enable' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.parent_proxy.total_connect_attempts','records.config','INT 10') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.parent_proxy.total_connect_attempts' and config_file = 'records.config' and value = 'INT 10') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.post_connect_attempts_timeout','records.config','INT 1800') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.post_connect_attempts_timeout' and config_file = 'records.config' and value = 'INT 1800') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.push_method_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.push_method_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_default_redirect','records.config','STRING http://www.example.com/') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_default_redirect' and config_file = 'records.config' and value = 'STRING http://www.example.com/') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_filter','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_filter' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.referer_format_redirect','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.referer_format_redirect' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.response_server_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.response_server_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.send_http11_requests','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.send_http11_requests' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.server_ports','records.config','STRING 80 80:ipv6 443:ssl 443:ipv6:ssl 8080 8080:ipv6') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.server_ports' and config_file = 'records.config' and value = 'STRING 80 80:ipv6 443:ssl 443:ipv6:ssl 8080 8080:ipv6') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.share_server_sessions','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.share_server_sessions' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.slow.log.threshold','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.slow.log.threshold' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_active_timeout_in','records.config','INT 900') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_active_timeout_in' and config_file = 'records.config' and value = 'INT 900') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_active_timeout_out','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_active_timeout_out' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_no_activity_timeout_in','records.config','INT 30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_no_activity_timeout_in' and config_file = 'records.config' and value = 'INT 30') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.transaction_no_activity_timeout_out','records.config','INT 30') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.transaction_no_activity_timeout_out' and config_file = 'records.config' and value = 'INT 30') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.uncacheable_requests_bypass_parent','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.uncacheable_requests_bypass_parent' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.http.user_agent_pipeline','records.config','INT 8') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.http.user_agent_pipeline' and config_file = 'records.config' and value = 'INT 8') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.icp_interface','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.icp_interface' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.icp_port','records.config','INT 3130') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.icp_port' and config_file = 'records.config' and value = 'INT 3130') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.multicast_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.multicast_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.icp.query_timeout','records.config','INT 2') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.icp.query_timeout' and config_file = 'records.config' and value = 'INT 2') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.auto_delete_rolled_files','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.auto_delete_rolled_files' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_host','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_host' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_host_tagged','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_host_tagged' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_port','records.config','INT 8085') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_port' and config_file = 'records.config' and value = 'INT 8085') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_retry_sec','records.config','INT 5') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_retry_sec' and config_file = 'records.config' and value = 'INT 5') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.collation_secret','records.config','STRING foobar') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.collation_secret' and config_file = 'records.config' and value = 'STRING foobar') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_header','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_header' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_is_ascii','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_is_ascii' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.common_log_name','records.config','STRING common') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.common_log_name' and config_file = 'records.config' and value = 'STRING common') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.custom_logs_enabled','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.custom_logs_enabled' and config_file = 'records.config' and value = 'INT 1') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_enabled','records.config','INT 0') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_enabled' and config_file = 'records.config' and value = 'INT 0') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_header','records.config','STRING NULL') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile, parameter) VALUES ( (select id from profile where name = 'EDGE_PROFILE'), (select id from parameter where name = 'CONFIG proxy.config.log.extended2_log_header' and config_file = 'records.config' and value = 'STRING NULL') ) ON CONFLICT (profile, parameter) DO NOTHING;
+
+INSERT INTO parameter (name, config_file, value) VALUES ('CONFIG proxy.config.log.extended2_log_is_ascii','records.config','INT 1') ON CONFLICT (name,config_file, value) DO NOTHING;
+INSERT INTO profile_parameter (profile,
<TRUNCATED>
[22/27] incubator-trafficcontrol git commit: removed demo seeds as
the data/profiles supplants it
Posted by da...@apache.org.
removed demo seeds as the data/profiles supplants it
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/4c6db492
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/4c6db492
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/4c6db492
Branch: refs/heads/master
Commit: 4c6db492b8621843610735a4042563b104486b6e
Parents: 9788eab
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 9 08:54:01 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:59 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/db/admin.pl | 4 ----
traffic_ops/app/db/seeds_demo.sql | 39 ----------------------------------
2 files changed, 43 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4c6db492/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index 0a3d8bb..bf6093e 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -65,7 +65,6 @@ my $usage = "\n"
. "redo - Roll back the most recently applied migration, then run it again.\n"
. "reset - Execute db 'dropdb', 'createdb', load_schema, migrate on the database for the current environment.\n"
. "reverse_schema - Reverse engineer the lib/Schema/Result files from the environment database.\n"
- . "seed_demo - Execute sql from db/seeds_demo.sql for loading static demo data.\n"
. "seed - Execute sql from db/seeds.sql for loading static data.\n"
. "show_users - Execute sql to show all of the user for the current environment.\n"
. "status - Print the status of all migrations.\n"
@@ -134,9 +133,6 @@ if ( defined($argument) ) {
elsif ( $argument eq 'seed' ) {
seed();
}
- elsif ( $argument eq 'seed_demo' ) {
- seed_demo();
- }
elsif ( $argument eq 'load_schema' ) {
load_schema();
}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4c6db492/traffic_ops/app/db/seeds_demo.sql
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/seeds_demo.sql b/traffic_ops/app/db/seeds_demo.sql
deleted file mode 100644
index 4849a3c..0000000
--- a/traffic_ops/app/db/seeds_demo.sql
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
--- THIS FILE INCLUDES DEMO DATA. IT BUILDS UPON THE RECORDS INSERTED IN SEEDS.SQL
-
--- parameters (demo)
-insert into parameter (name, config_file, value) values ('tm.toolname', 'global', 'Traffic Ops') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('tm.infourl', 'global', 'http://docs.cdnl.kabletown.net/traffic_control/html/') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('tm.logourl', 'global', '/images/tc_logo.png') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('tm.instance_name', 'global', 'kabletown CDN') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('geolocation.polling.url', 'CRConfig.json', 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCity.dat.gz') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('geolocation6.polling.url', 'CRConfig.json', 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCityv6.dat.gz') ON CONFLICT (name, config_file, value) DO NOTHING;
-
-insert into parameter (name, config_file, value) values ('tld.soa.admin', 'CRConfig.json', 'traffic_ops') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('health.polling.interval', 'rascal-config.txt', '8000') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('health.threshold.loadavg', 'rascal.properties', '25.0') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('health.connection.timeout', 'rascal.properties', '25.0') ON CONFLICT (name, config_file, value) DO NOTHING;
-insert into parameter (name, config_file, value) values ('health.threshold.availableBandwidthInKbps', 'rascal.properties', '>1750000') ON CONFLICT (name, config_file, value) DO NOTHING;
-
--- profile_parameters (demo)
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.url' and config_file = 'global' and value = 'https://tm.kabletown.net/') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.toolname' and config_file = 'global' and value = 'Traffic Ops') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.infourl' and config_file = 'global' and value = 'http://docs.cdnl.kabletown.net/traffic_control/html/') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.logourl' and config_file = 'global' and value = '/images/tc_logo.png') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'tm.instance_name' and config_file = 'global' and value = 'kabletown CDN') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'geolocation.polling.url' and config_file = 'CRConfig.json' and value = 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCity.dat.gz') ) ON CONFLICT (profile, parameter) DO NOTHING;
-insert into profile_parameter (profile, parameter) values ( (select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'geolocation6.polling.url' and config_file = 'CRConfig.json' and value = 'http://cdn-tools.cdnl.kabletown.net/cdn/MaxMind/GeoLiteCityv6.dat.gz') ) ON CONFLICT (profile, parameter) DO NOTHING;
[09/27] incubator-trafficcontrol git commit: added a comment
Posted by da...@apache.org.
added a comment
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/a8aedf6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/a8aedf6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/a8aedf6c
Branch: refs/heads/master
Commit: a8aedf6c2a2b5e95dd53d11bdd79b66203d9dfc3
Parents: 41c1031
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:07:41 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000
----------------------------------------------------------------------
traffic_ops/install/bin/todb_bootstrap.sh | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/a8aedf6c/traffic_ops/install/bin/todb_bootstrap.sh
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/todb_bootstrap.sh b/traffic_ops/install/bin/todb_bootstrap.sh
index 2de2d03..c7bf2e9 100755
--- a/traffic_ops/install/bin/todb_bootstrap.sh
+++ b/traffic_ops/install/bin/todb_bootstrap.sh
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
+# This script sets up the 'traffic_ops' role and database to simplify schema and data loading
+#
# To bypass the password prompts for automation, please set TODB_USERNAME_PASSWORD=<yourpassword> before you invoke
+#
# Example:
#