From c82afe44ea5c1301f6d4dd0cf249b80d8b185729 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 5 Apr 2017 23:30:12 +0200 Subject: [PATCH] added sample inputs --- sample/formats/sample.conf | 45 +++++++ sample/formats/sample.csv | 1 + sample/formats/sample.ini | 263 +++++++++++++++++++++++++++++++++++++ sample/formats/sample.json | 49 +++++++ sample/formats/sample.perl | 29 ++++ sample/formats/sample.xml | 33 +++++ sample/formats/sample.yml | 116 ++++++++++++++++ 7 files changed, 536 insertions(+) create mode 100644 sample/formats/sample.conf create mode 100644 sample/formats/sample.csv create mode 100644 sample/formats/sample.ini create mode 100644 sample/formats/sample.json create mode 100644 sample/formats/sample.perl create mode 100644 sample/formats/sample.xml create mode 100644 sample/formats/sample.yml diff --git a/sample/formats/sample.conf b/sample/formats/sample.conf new file mode 100644 index 0000000..ca9b600 --- /dev/null +++ b/sample/formats/sample.conf @@ -0,0 +1,45 @@ + + + name stein + age 25 + + + name bird + age 31 + + +domain nix.to +domain b0fh.org +domain foo.bar +message < +host = blah.blubber + + + + user1 hans + + + + user2 max + + +quoted = "this one contains whitespace at the end " + +quotedwithquotes = " holy crap, it contains \"masked quotes\" and 'single quotes' " + + diff --git a/sample/formats/sample.csv b/sample/formats/sample.csv new file mode 100644 index 0000000..3bd0db2 --- /dev/null +++ b/sample/formats/sample.csv @@ -0,0 +1 @@ +policyID,statecode,county,eq_site_limit,hu_site_limit,fl_site_limit,fr_site_limit,tiv_2011,tiv_2012,eq_site_deductible,hu_site_deductible,fl_site_deductible,fr_site_deductible,point_latitude,point_longitude,line,construction,point_granularity 119736,FL,CLAY COUNTY,498960,498960,498960,498960,498960,792148.9,0,9979.2,0,0,30.102261,-81.711777,Residential,Masonry,1 448094,FL,CLAY COUNTY,1322376.3,1322376.3,1322376.3,1322376.3,1322376.3,1438163.57,0,0,0,0,30.063936,-81.707664,Residential,Masonry,3 206893,FL,CLAY COUNTY,190724.4,190724.4,190724.4,190724.4,190724.4,192476.78,0,0,0,0,30.089579,-81.700455,Residential,Wood,1 333743,FL,CLAY COUNTY,0,79520.76,0,0,79520.76,86854.48,0,0,0,0,30.063236,-81.707703,Residential,Wood,3 172534,FL,CLAY COUNTY,0,254281.5,0,254281.5,254281.5,246144.49,0,0,0,0,30.060614,-81.702675,Residential,Wood,1 785275,FL,CLAY COUNTY,0,515035.62,0,0,515035.62,884419.17,0,0,0,0,30.063236,-81.707703,Residential,Masonry,3 995932,FL,CLAY COUNTY,0,19260000,0,0,19260000,20610000,0,0,0,0,30.102226,-81.713882,Commercial,Reinforced Concrete,1 223488,FL,CLAY COUNTY,328500,328500,328500,328500,328500,348374.25,0,16425,0,0,30.102217,-81.707146,Residential,Wood,1 433512,FL,CLAY COUNTY,315000,315000,315000,315000,315000,265821.57,0,15750,0,0,30.118774,-81.704613,Residential,Wood,1 142071,FL,CLAY COUNTY,705600,705600,705600,705600,705600,1010842.56,14112,35280,0,0,30.100628,-81.703751,Residential,Masonry,1 253816,FL,CLAY COUNTY,831498.3,831498.3,831498.3,831498.3,831498.3,1117791.48,0,0,0,0,30.10216,-81.719444,Residential,Masonry,1 894922,FL,CLAY COUNTY,0,24059.09,0,0,24059.09,33952.19,0,0,0,0,30.095957,-81.695099,Residential,Wood,1 422834,FL,CLAY COUNTY,0,48115.94,0,0,48115.94,66755.39,0,0,0,0,30.100073,-81.739822,Residential,Wood,1 582721,FL,CLAY COUNTY,0,28869.12,0,0,28869.12,42826.99,0,0,0,0,30.09248,-81.725167,Residential,Wood,1 842700,FL,CLAY COUNTY,0,56135.64,0,0,56135.64,50656.8,0,0,0,0,30.101356,-81.726248,Residential,Wood,1 874333,FL,CLAY COUNTY,0,48115.94,0,0,48115.94,67905.07,0,0,0,0,30.113743,-81.727463,Residential,Wood,1 580146,FL,CLAY COUNTY,0,48115.94,0,0,48115.94,66938.9,0,0,0,0,30.121655,-81.732391,Residential,Wood,3 456149,FL,CLAY COUNTY,0,80192.49,0,0,80192.49,86421.04,0,0,0,0,30.109537,-81.741661,Residential,Wood,1 767862,FL,CLAY COUNTY,0,48115.94,0,0,48115.94,73798.5,0,0,0,0,30.11824,-81.745335,Residential,Wood,3 353022,FL,CLAY COUNTY,0,60946.79,0,0,60946.79,62467.29,0,0,0,0,30.065799,-81.717416,Residential,Wood,1 367814,FL,CLAY COUNTY,0,28869.12,0,0,28869.12,42727.74,0,0,0,0,30.082993,-81.710581,Residential,Wood,1 671392,FL,CLAY COUNTY,0,13410000,0,0,13410000,11700000,0,0,0,0,30.091921,-81.711929,Commercial,Reinforced Concrete,3 772887,FL,CLAY COUNTY,0,1669113.93,0,0,1669113.93,2099127.76,0,0,0,0,30.117352,-81.711884,Residential,Masonry,1 983122,FL,CLAY COUNTY,0,179562.23,0,0,179562.23,211372.57,0,0,0,0,30.095783,-81.713181,Residential,Wood,3 934215,FL,CLAY COUNTY,0,177744.16,0,0,177744.16,157171.16,0,0,0,0,30.110518,-81.727478,Residential,Wood,1 \ No newline at end of file diff --git a/sample/formats/sample.ini b/sample/formats/sample.ini new file mode 100644 index 0000000..ccaa63b --- /dev/null +++ b/sample/formats/sample.ini @@ -0,0 +1,263 @@ + + +[Settings] + +;====================================================================== + +; Set detailed log for additional debugging info + +DetailedLog=1 + +RunStatus=1 + +StatusPort=6090 + +StatusRefresh=10 + +Archive=1 + +; Sets the location of the MV_FTP log file + +LogFile=/opt/ecs/mvuser/MV_IPTel/log/MV_IPTel.log + +;====================================================================== + +Version=0.9 Build 4 Created July 11 2004 14:00 + +ServerName=Unknown + + +[FTP] + +;====================================================================== + +; set the FTP server active + +RunFTP=1 + +; defines the FTP control port + +FTPPort=21 + +; defines the FTP data port + +FTPDataPort=20 + + +FTPDir=/opt/ecs/mvuser/MV_IPTel/data/FTPdata + +; FTP Timeout (secs) + +FTP_TimeOut=5 + +; Enable SuperUser + +EnableSU=1 + +; set the SuperUser Name + +SUUserName=mvuser + +; set the SuperUser Password + +SUPassword=Avaya + +; + +;====================================================================== + +[FTPS] + +;====================================================================== + +; set the FTPS server active + +RunFTPS=0 + +; defines the FTP control port + +FTPPort=990 + +; defines the FTP data port + +FTPDataPort=889 + +;====================================================================== + + +[TFTP] + +;====================================================================== + +; set the Trivial FTP server active + +RunTrivialFTP=1 + +; defines the Trivial FTP port + +TrivialFTPPort=69 + + +TFTPDir=/opt/ecs/mvuser/MV_IPTel/data/TFTPdata + +;====================================================================== + +[HTTP] + +;====================================================================== + +; set the HTTP download server active + +RunHTTP=1 + +; defines the HTTP download port + +HTTPPort=81 + +; Sets the location of the HTTP data directory for downloads + +HTTPDir=/opt/ecs/mvuser/MV_IPTel/data/HTTPdata + +;====================================================================== + +[HTTPS] + +;====================================================================== + +; set the HTTPS download server active + +RunHTTPS=0 + +; defines the HTTPS download port + +HTTPSPort=411 + +; Sets the location of the HTTPS data directory for downloads + +HTTPSDir=/opt/ecs/mvuser/MV_IPTel/data/HTTPSdata + +; Sets the location of the CertFile + +CertFile=/opt/ecs/mvuser/MV_IPTel/certs/IPTelcert.pem + +; Sets the location of the KeyFile + +KeyFile=/opt/ecs/mvuser/MV_IPTel/certs/IPTelkey.pem + +; Use Client Authorization + +ClientAuth=0 + +; narrow config for Avaya IPTel (TLSV1 using RSA_NULL_SHA) + +IPTel=0 + +; sets the SSL variants if not Avaya IPtel (IPTel=0) + +SSLV2=0 + +SSLV3=0 + +TLSV1=1 + +UseProxy=0 + +ProxyAddr=simon.avaya.com + +ProxyPort=9000 + +;====================================================================== + +[BACKUP_SERVERS] + +;====================================================================== + +FileServer=0 + +RequestUpdates=0 + +RequestBackup=0 + +; Enable use of the Primary file server + +UsePrimarySvr=0 + +; Primary file server IP address ( or resolvable DNS) + +PrimaryIP=192.168.0.13 + +; Enable use of the Secondary file server + +UseSecondarySvr=0 + +; Secondary file server IP address ( or resolvable DNS) + +SecondaryIP=192.168.0.10 + +; Sets the update interval for Backups & updates ; 1 = min; 2 + +UpdateInterval=2 + +;Send FTP backup to the customer sever + +CustomFTP=1 + +; FTP backup directory customer sever + +CustomFTPDir=home/mvuser/backup + +; FTP backup directory user login name + +CustomFTPUName=tom + +; FTP backup directory user password + +CustomFTPPwd=jerry + +; Enable CDR Backup - enable=1 on both File Server & Client + +CDRBackup=0 + +; Enable BCMS Backup - enable=1 on both File Server & Client + +BCMSBackup=0 + +; Retain CDR / BCMS copy data for x days ( Receiver always + 1 + +RetainDays=7.0 + +;====================================================================== + + +[SNMP] + +;================================================================ + +; + +; Validate FTP store with SNMP check + +UseSNMP=1 + +; In case the SNMPGET syntax changes you can redefine the commands + +; Uncomment the relevant line to override the internal command + +;the syntax is "Command + IPADDR + ExtObj + Awk + +; the IPADRR is derived from the connection + +; Note there are relavant spaces at the start/end of the component + +;Command=/usr/bin/snmpget + +;Params= -v2c -cpublic + +;ExtObject=.1.3.6.1.4.1.6889.2.69.1.4.9.0 + +;TypeObject=.1.3.6.1.4.1.6889.2.69.1.1.2.0 + +;Awk=| awk -F \" '' {print $2 } '' + +;================================================================ + diff --git a/sample/formats/sample.json b/sample/formats/sample.json new file mode 100644 index 0000000..325ac7f --- /dev/null +++ b/sample/formats/sample.json @@ -0,0 +1,49 @@ +{ + "abstract" : "Inspect and manipulate perl data structures interactively", + "author" : [ + "Thomas v.Dein " + ], + "dynamic_config" : 0, + "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150005", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Data-Interactive-Inspect", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "File::Temp" : "0", + "Term::ReadLine" : "0", + "YAML" : "0" + } + } + }, + "release_status" : "stable", + "resources" : { + "repository" : { + "url" : "https://github.com/TLINDEN/Data-Interactive-Inspect" + } + }, + "version" : 0.06, + "x_serialization_backend" : "JSON::PP version 2.27300" +} diff --git a/sample/formats/sample.perl b/sample/formats/sample.perl new file mode 100644 index 0000000..ac30c29 --- /dev/null +++ b/sample/formats/sample.perl @@ -0,0 +1,29 @@ +$VAR1 = { + 'food' => { + 'Berry-Berry Belgian Waffles' => { + 'price' => '$8.95', + 'calories' => '900', + 'description' => 'Light Belgian waffles covered with an assortment of fresh berries and whipped cream' + }, + 'Homestyle Breakfast' => { + 'price' => '$6.95', + 'calories' => '950', + 'description' => 'Two eggs, bacon or sausage, toast, and our ever-popular hash browns' + }, + 'Belgian Waffles' => { + 'calories' => '650', + 'price' => '$5.95', + 'description' => 'Two of our famous Belgian Waffles with plenty of real maple syrup' + }, + 'French Toast' => { + 'price' => '$4.50', + 'calories' => '600', + 'description' => 'Thick slices made from our homemade sourdough bread' + }, + 'Strawberry Belgian Waffles' => { + 'price' => '$7.95', + 'calories' => '900', + 'description' => 'Light Belgian waffles covered with strawberries and whipped cream' + } + } + }; diff --git a/sample/formats/sample.xml b/sample/formats/sample.xml new file mode 100644 index 0000000..62cc296 --- /dev/null +++ b/sample/formats/sample.xml @@ -0,0 +1,33 @@ + + + + Belgian Waffles + $5.95 + Two of our famous Belgian Waffles with plenty of real maple syrup + 650 + + + Strawberry Belgian Waffles + $7.95 + Light Belgian waffles covered with strawberries and whipped cream + 900 + + + Berry-Berry Belgian Waffles + $8.95 + Light Belgian waffles covered with an assortment of fresh berries and whipped cream + 900 + + + French Toast + $4.50 + Thick slices made from our homemade sourdough bread + 600 + + + Homestyle Breakfast + $6.95 + Two eggs, bacon or sausage, toast, and our ever-popular hash browns + 950 + + diff --git a/sample/formats/sample.yml b/sample/formats/sample.yml new file mode 100644 index 0000000..e0d477b --- /dev/null +++ b/sample/formats/sample.yml @@ -0,0 +1,116 @@ +--- +cloud: + # Cloud Name: The cloud name must not contain spaces or special + # characters. The name is used for the OpenStack region name. The + # default value for the ICOS Hybrid cloud is RegionTwo. + name: RegionTwo + # Cloud Description + description: ICOS Hybrid - Controller + N Compute Topology - x86 KVM + # Cloud Administrator (admin) User's Password. For the ICOS Hybrid + # cloud, the cloud administrator user's password is contained in the + # password JSON file. It can be overridden here if needed. + password: ~ + # Cloud Password JSON File. This is required for the ICOS Hybrid cloud. + # Copy the example password file for the ICOS Hybrid cloud located in + # the ICM chef-repo to the deployment folder, rename it, and set the + # password values in the file for the on premise admin user and services + # required for the ICOS Hybrid cloud. Enter the fully qualified path and + # file name of that password file here. + password_file: YOUR_PASSWORD_FILE + # Cloud Database Service Type: db2, mariadb or mysql + database_service_type: db2 + # Cloud Messaging Service Type: rabbitmq or qpid + messaging_service_type: rabbitmq +# (Optional) Cloud SSL certificate chain file. This is not required. +# If not specified, the cacert_file will be created automatically, +# and placed on the Chef server. Only specify this value if you are +# providing your own cloud SSL certificate chain file, and controller +# SSL certificate and private key files for FIPS compliance. If specified, +# it must include all certificate chains required in the hybrid environment +# including any needed in the off-premise region. +# cacert_file: YOUR_CLOUD_CACERT_FILE_LOCATION + # Cloud Features: The cloud features to be enabled or disabled. The + # icos_hybrid_cloud, and fips_compliance features are enabled, by default. The + # self_service_portal feature must be disabled for the ICOS Hybrid cloud. + features: + self_service_portal: disabled + platform_resource_scheduler: enabled + icos_hybrid_cloud: enabled + fips_compliance: enabled + # Cloud Topology: References the node name(s) for each role + # within the cloud's topology. A self_service_portal_node_name + # should not be specified for the ICOS Hybrid cloud. + topology: + database_node_name: controller + controller_node_name: controller + self_service_portal_node_name: ~ + kvm_compute_node_names: kvm_compute + +# ================================================================ +# Environment Information +# ================================================================ +environment: + base: example-ibm-os-single-controller-n-compute + default_attributes: + # (Optional) Add Default Environment Attributes + + override_attributes: + # (Optional) Add Override Environment Attributes + ntp.servers: [0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org] + +# ================================================================ +# Hybrid Cloud Information. +# ================================================================ +hybrid: + # The Keystone Identity service endpoint host. Enter either the host FQDN or + # it's IP address. This value is not validated. Please ensure it is correct. + # The value is defaulted to 192.168.101.10 for the ICOS Hybrid cloud. + keystone_endpoint_host: 192.168.101.10 + # The Identity service admin tenant name. The value is defaulted to + # on-prem-admin for the ICOS Hybrid cloud. + admin_tenant_name: on-prem-admin + # The Identity service admin user name. The value is defaulted to + # admin-on-prem for the ICOS Hybrid cloud. + admin_user: admin-on-prem + # The SSL certificate chain file for the ICOS region. Enter the local + # location on the Chef server of the ICOS SSL certificate chain file as a + # fully qualified path and file name. This value is required unless both the + # on-premise region, and the ICOS system have trusted, commercially signed + # SSL certificates. This value is ignored if the optional cacert_file value + # is specified. + off_prem_certificate_chain_file: YOUR_OFF_PREM_CERTIFICATE_CHAIN_FILE_LOCAL_LOCATION + +# ================================================================ +# Node Information +# ================================================================ +nodes: + - name: controller + description: Cloud controller node + fqdn: YOUR_CONTROLLER_NODE_FQDN + password: ~ + identity_file: ~ + nics: + management_network: eth0 + data_network: eth1 + # (Optional) Node Attribute JSON File + attribute_file: ~ + # (Optional) Controller SSL certificate and private key files. + # These values are not required. If not specified, the cert_file and + # key_file will be created automatically, and placed on the Chef + # server. Only specify these values if you are providing your own cloud + # SSL certificate chain file, and controller SSL certificate and + # private key files for FIPS compliance. + # cert_file: YOUR_CONTROLLER_CERTIFICATE_FILE_LOCATION + # key_file: YOUR_CONTROLLER_PRIVATE_KEY_FILE_LOCATION + - name: kvm_compute + description: Cloud KVM compute node + fqdn: YOUR_KVM_COMPUTE_NODE_FQDN + password: ~ + identity_file: ~ + nics: + management_network: eth0 + data_network: eth1 + # (Optional) Node Attribute JSON File + attribute_file: ~ + # Copy the kvm_compute node section above for additional + # KVM compute nodes in your cloud.