diff --git a/inventory/cloud b/inventory/cloud index 0423eec588..daf2b58346 100644 --- a/inventory/cloud +++ b/inventory/cloud @@ -69,7 +69,6 @@ libravatar.fedorainfracloud.org libravatar-stg.fedorainfracloud.org ppc64le-test.fedorainfracloud.org rawhide-test.fedorainfracloud.org -regcfp2.fedorainfracloud.org respins.fedorainfracloud.org telegram-irc.fedorainfracloud.org testdays.fedorainfracloud.org diff --git a/inventory/group_vars/batcave b/inventory/group_vars/batcave index 3eddd7c905..2efa28b8fd 100644 --- a/inventory/group_vars/batcave +++ b/inventory/group_vars/batcave @@ -8,7 +8,7 @@ tcp_ports: [ 80, 443, 8442, 8443 ] # Neeed for rsync from log01 for logs. custom_rules: [ '-A INPUT -p tcp -m tcp -s 10.5.126.13 --dport 873 -j ACCEPT', '-A INPUT -p tcp -m tcp -s 192.168.1.59 --dport 873 -j ACCEPT' ] -fas_client_groups: sysadmin-ask,sysadmin-atomic,sysadmin-cvs,sysadmin-main,sysadmin-web,sysadmin-noc,sysadmin-hosted,sysadmin-releng,sysadmin-qa,sysadmin-tools,sysadmin-cloud,sysadmin-bot,sysadmin-centos,sysadmin-koschei,sysadmin-datanommer,sysadmin-fedimg,fi-apprentice,sysadmin-regcfp,sysadmin-badges,sysadmin-mbs,sysadmin-veteran,sysadmin-coreos,sysadmin-upstreamfirst,sysadmin-releasemonitoring,sysadmin-fpdc,sysadmin-messaging,sysadmin-libravatar,sysadmin-gnome,sysadmin-copr,sysadmin-osbs,sysadmin-odcs +fas_client_groups: sysadmin-ask,sysadmin-atomic,sysadmin-cvs,sysadmin-main,sysadmin-web,sysadmin-noc,sysadmin-hosted,sysadmin-releng,sysadmin-qa,sysadmin-tools,sysadmin-cloud,sysadmin-bot,sysadmin-centos,sysadmin-koschei,sysadmin-datanommer,sysadmin-fedimg,fi-apprentice,sysadmin-badges,sysadmin-mbs,sysadmin-veteran,sysadmin-coreos,sysadmin-upstreamfirst,sysadmin-releasemonitoring,sysadmin-fpdc,sysadmin-messaging,sysadmin-libravatar,sysadmin-gnome,sysadmin-copr,sysadmin-osbs,sysadmin-odcs ansible_base: /srv/web/infra freezes: false diff --git a/inventory/inventory b/inventory/inventory index fc04da4f5d..c5adfb3cde 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -1001,6 +1001,8 @@ copr-be-dev.cloud.fedoraproject.org copr-fe-dev.cloud.fedoraproject.org # fas2-dev fas2-dev.fedorainfracloud.org +# Ansible Magazine +ansiblemagazine.fedorainfracloud.org # Fedora Bootstrap VM fedora-bootstrap.fedorainfracloud.org # lists development instance diff --git a/master.yml b/master.yml index c6f913c685..ee95841273 100644 --- a/master.yml +++ b/master.yml @@ -121,7 +121,7 @@ - import_playbook: /srv/web/infra/ansible/playbooks/hosts/grobisplitter01.phx2.fedoraproject.org.yml - import_playbook: /srv/web/infra/ansible/playbooks/hosts/iddev.fedorainfracloud.org.yml - import_playbook: /srv/web/infra/ansible/playbooks/hosts/lists-dev.fedorainfracloud.org.yml -- import_playbook: /srv/web/infra/ansible/playbooks/hosts/regcfp2.fedorainfracloud.org.yml +- import_playbook: /srv/web/infra/ansible/playbooks/hosts/ansiblemagazine.fedorainfracloud.org.yml - import_playbook: /srv/web/infra/ansible/playbooks/hosts/respins.fedorainfracloud.org.yml - import_playbook: /srv/web/infra/ansible/playbooks/hosts/testdays.fedorainfracloud.org.yml - import_playbook: /srv/web/infra/ansible/playbooks/hosts/upstreamfirst.fedorainfracloud.org.yml diff --git a/playbooks/hosts/regcfp2.fedorainfracloud.org.yml b/playbooks/hosts/regcfp2.fedorainfracloud.org.yml deleted file mode 100644 index 3242f9c197..0000000000 --- a/playbooks/hosts/regcfp2.fedorainfracloud.org.yml +++ /dev/null @@ -1,37 +0,0 @@ -- name: check/create instance - hosts: regcfp2.fedorainfracloud.org - gather_facts: False - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - /srv/private/ansible/vars.yml - - /srv/web/infra/ansible/vars/fedora-cloud.yml - - /srv/private/ansible/files/openstack/passwords.yml - - tasks: - - import_tasks: "{{ tasks_path }}/persistent_cloud.yml" - - handlers: - - import_tasks: "{{ handlers_path }}/restart_services.yml" - -- name: setup all the things - hosts: regcfp2.fedorainfracloud.org - gather_facts: True - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - /srv/private/ansible/vars.yml - - /srv/private/ansible/files/openstack/passwords.yml - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml - - pre_tasks: - - import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml" - - name: set hostname (required by some services, at least postfix need it) - hostname: name="{{inventory_hostname}}" - - roles: - - basessh - - nagios_client - - postgresql_server - - regcfp - - tasks: diff --git a/roles/regcfp/files/regcfp.service b/roles/regcfp/files/regcfp.service deleted file mode 100644 index ea2276efc1..0000000000 --- a/roles/regcfp/files/regcfp.service +++ /dev/null @@ -1,13 +0,0 @@ -[Service] -ExecStart=/bin/node /srv/regcfp/bin/www -Restart=always -StandardOutput=syslog -StandardError=syslog -SyslogIdentifier=regcfp -User=root -Group=root -WorkingDirectory=/srv/regcfp -Environment=NODE_ENV=production - -[Install] -WantedBy=multi-user.target diff --git a/roles/regcfp/handlers/main.yml b/roles/regcfp/handlers/main.yml deleted file mode 100644 index 448f9853ca..0000000000 --- a/roles/regcfp/handlers/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- name: restart regcfp - service: name=regcfp state=restarted diff --git a/roles/regcfp/tasks/main.yml b/roles/regcfp/tasks/main.yml deleted file mode 100644 index 641d82860c..0000000000 --- a/roles/regcfp/tasks/main.yml +++ /dev/null @@ -1,69 +0,0 @@ ---- - -- name: install needed packages - package: name={{ item }} state=present - with_items: - - git - - nodejs - - npm - tags: - - packages - -- name: Clone the regcfp master branch - git: repo=https://github.com/puiterwijk/regcfp.git - dest=/srv/regcfp - version=flock2017 - clone=yes update=yes - register: git_result - changed_when: "git_result.after|default('after') != git_result.before|default('before')" - tags: - - regcfp - notify: - - restart regcfp - -# TODO: Find EPEL packages for these -- name: Install dependencies - command: /bin/npm install - chdir=/srv/regcfp - register: deps - changed_when: "deps.stdout|length > 0" - tags: - - regcfp - -- name: copy over the server config - template: src=config.json dest=/srv/regcfp/config/config.json mode=0640 - tags: - - regcfp - notify: - - restart regcfp - -- name: Copy over the ftf certs - copy: src="{{private}}/files/httpd/{{item}}" - dest=/etc/pki/tls/certs - with_items: - - flocktofedora.org.cert - - flocktofedora.org.intermediate.cert - tags: - - regcfp - notify: - - restart regcfp - -- name: Copy over the ftf cert key - copy: src="{{private}}/files/httpd/flocktofedora.org.key" - dest=/etc/pki/tls/private - tags: - - regcfp - notify: - - restart regcfp - -- name: copy over the systemd file - copy: src=regcfp.service dest=/etc/systemd/system/regcfp.service mode=0640 - tags: - - regcfp - notify: - - restart regcfp - -- name: regcfp service - service: name=regcfp state=started enabled=yes - tags: - - regcfp diff --git a/roles/regcfp/templates/config.json b/roles/regcfp/templates/config.json deleted file mode 100644 index 4694e6f652..0000000000 --- a/roles/regcfp/templates/config.json +++ /dev/null @@ -1,701 +0,0 @@ -{ - "production": { - "site_url": "https://register.flocktofedora.org", - "theming": { - "theme": "fedora", - "site_name": "Flock 2017 Registration", - "event_name": "Flock 2017", - "logo": "", - "event_location": "Hyannis, Cape Cod" - }, - "secret": "{{ regcfp_secret }}", - "database": { - "dialect": "postgres", - "database": "regcfp", - "username": "regcfp", - "password": "{{ regcfp_db_pass }}", - "define": { - "paranoid": true - } - }, - - "email": { - "from": "flock-staff@fedoraproject.org", - "transport": { - "host": "localhost", - "port": 25, - "secure": false - } - }, - - "listen": { - "http": { - "enabled": true, - "listenip": "0.0.0.0", - "port": 80 - }, - "https": { - "enabled": true, - "only": false, - "url": "https://register.flocktofedora.org", - "listenip": "0.0.0.0", - "port": 443, - "cert": "/etc/pki/tls/certs/flocktofedora.org.cert", - "ca": "/etc/pki/tls/certs/flocktofedora.org.intermediate.cert", - "key": "/etc/pki/tls/private/flocktofedora.org.key" - } - }, - - "auth": { - "module": "openid", - "openid_connect_providers": { - "fedora": { - "discovery_url": "https://id.fedoraproject.org/openidc/.well-known/openid-configuration", - "email_domain": "fedoraproject.org", - "client_id": "regcfp", - "client_secret": "{{ regcfp_openidc_secret}}" - } - } - }, - - "permissions": { - "admin": ["puiterwijk@fedoraproject.org", "pfrields@fedoraproject.org", "duffy@fedoraproject.org", "robyduck@fedoraproject.org", "mattdm@fedoraproject.org", "bex@fedoraproject.org", "nb@fedoraproject.org", "mitzie@fedoraproject.org", "cprofitt@fedoraproject.org"], - "papers": { - "submit": [], - "list": { - "accepted": ["bex@fedoraproject.org", "duffy@fedoraproject.org", "pfrields@fedoraproject.org", "mitzie@fedoraproject.org"], - "own": ["*authenticated*"], - "all": ["pfrields@fedoraproject.org", "duffy@fedoraproject.org", "mattdm@fedoraproject.org", "robyduck@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "nb@fedoraproject.org", "mitzie@fedoraproject.org"] - }, - "edit": { - "own": [], - "all": ["pfrields@fedoraproject.org", "bex@fedoraproject.org", "duffy@fedoraproject.org"] - }, - "delete": { - "own": [], - "all": ["pfrields@fedoraproject.org", "duffy@fedoraproject.org", "bex@fedoraproject.org"] - }, - "tag": ["*authenticated*"], - "vote": ["duffy@fedoraproject.org", "mattdm@fedoraproject.org", "pfrields@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "robyduck@fedoraproject.org", "nb@fedoraproject.org"], - "showvotes": ["duffy@fedoraproject.org", "mattdm@fedoraproject.org", "pfrields@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "robyduck@fedoraproject.org", "nb@fedoraproject.org"], - "accept": ["pfrields@fedoraproject.org", "bex@fedoraproject.org", "duffy@fedoraproject.org"] - }, - "registration": { - "register": [], - "pay": [], - "request_receipt": [], - "view_public": [], - "view_all": ["bex@fedoraproject.org", "duffy@fedoraproject.org"], - "view_payment": ["bex@fedoraproject.org", "duffy@fedoraproject.org"], - "add_payment": [], - "print_badge": [], - "desk": [], - "cancel": [], - "cancel_all": [] - } - }, - - "papers": { - "enabled": true, - "tracks": [ - "Talk (30 min)", - "Talk (60 min)", - "Do-Session (120 min)", - "Do-Session (180 min)" - ] - }, - - - "registration": { - "enabled": true, - "fields": { - "reglegend": { - "type": "legend", - "display_name": "Registration Fee", - "split": 0 - }, - "doc1": { - "type": "documentation", - "display_name": "", - "html": [ - "The registration fee below is determined by your current country selection. ", - "This is in order to keep the fee fair and nominal across all regions. ", - "If your country isn't listed, please choose a country or region with a similar economic situation." - ], - "split": 0 - }, - "country": { - "display_name": "Country", - "short_display_name": "Ctr", - "type": "select", - "required": true, - "message" : "Choose a region with a similar economic situation if your country is not listed.", - "privmsg": "This will be kept private.", - "private": true, - "placeholder": "Country of origin", - "options": [ - "Argentina", - "Australia", - "Brazil", - "Britain", - "Canada", - "Chile", - "China", - "Colombia", - "Costa Rica", - "Czech Republic", - "Denmark", - "Egypt", - "Euro area", - "Hong Kong", - "Hungary", - "India", - "Indonesia", - "Israel", - "Japan", - "Malaysia", - "Mexico", - "New Zealand", - "Norway", - "Pakistan", - "Peru", - "Philippines", - "Poland", - "Russia", - "Saudi Arabia", - "Singapore", - "South Africa", - "South Korea", - "Sri Lanka", - "Sweden", - "Switzerland", - "Taiwan", - "Thailand", - "Turkey", - "UAE", - "Ukraine", - "United States", - "Uruguay", - "Venezuela", - "Vietnam", - "Austria", - "Belgium", - "Estonia", - "Finland", - "France", - "Germany", - "Greece", - "Ireland", - "Italy", - "Netherlands", - "Portugal", - "Spain" - ], - "onchange": "javascript:update_regfee(); javascript:update_estimates();", - "split": 0 - }, - "regfee": { - "display_name": "Registration Fee in USD $", - "type": "string", - "required": false, - "private": true, - "placeholder": "25.00", - "readonly": false, - "split": 0, - "message": "All amounts are in US dollars.", - "onchange": "javascript:update_estimates();" - }, - "reason": { - "display_name": "Why are you interested in attending Flock?", - "type": "textarea", - "required": true, - "private": true, - "split": 0 - }, - "soclegend": { - "type": "legend", - "display_name": "Social Details", - "split": 1 - }, - - "ircnick": { - "display_name": "IRC Nickname", - "short_display_name": "IRC", - "type": "string", - "required": false, - "private": false, - "placeholder": "IRC Nickname", - "split": 1 - }, - "badgeextra": { - "display_name": "Extra line for badges (if available)", - "short_display_name": "Badge", - "type": "string", - "required": false, - "private": false, - "placeholder": "", - "split": 1 - }, - "reqslegend": { - "type": "legend", - "display_name": "Personal Requirements", - "split": 1 - }, - - "veg": { - "display_name": "Vegetarian", - "short_display_name": "Veg", - "type": "select", - "required": true, - "message": "This does not guarantee availability of vegetarian options.", - "privmsg": "This will be kept private.", - "private": true, - "placeholder": "", - "options": [ - "No", "Yes" - ], - "split": 1 - }, - "dietary": { - "display_name": "Medical dietary restrictions", - "short_display_name": "Diet", - "type": "string", - "required": false, - "message": "No guarantees are made here, but we will do our best!", - "privmsg": "This will be kept private.", - "private": true, - "placeholder": "", - "split": 1 - }, - "inviteletter": { - "display_name": "Do you need an invitation letter to attend?", - "short_display_name": "Inv", - "type": "select", - "required": true, - "private": false, - "placeholder": "", - "options": [ - "No", "Yes" - ], - "split": 1 - }, - "shirtsize": { - "display_name": "T-shirt size", - "short_display_name": "Sz", - "type": "select", - "message": "This will be kept private.", - "required": false, - "private": true, - "placeholder": "", - "options": [ - "No shirt", - "Mens XS", - "Mens S", - "Mens M", - "Mens L", - "Mens XL", - "Mens XXL", - "Mens 3XL", - "Ladies S", - "Ladies M", - "Ladies L", - "Ladies XL" - ], - "split": 1 - }, - "assistlegend": { - "type": "legend", - "display_name": "Financial Assistance", - "split": 2 - }, - - "needassistance": { - "display_name": "Do you need financial assistance in order to attend Flock?", - "short_display_name": "Sub", - "type": "radio", - "required": true, - "private": true, - "onchange": "javascript:update_regfee(); javascript:update_estimates();", - "options": [ - "No, I / my employer can cover my expenses.", - "Yes, my attendance requires financial assistance." - ], - "split": 2 - }, - - "sponsor_additional": { - "display_name": "Would you like to help sponsor a Fedora volunteer's attendance?", - "short_display_name": "Spon", - "type": "radio", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "No, I / my employer can cover my expenses.", - "options": [ - "No, thank you.", - "Yes, I will sponsor the amount that follows." - ], - "split": 2 - }, - "sponsor_additional_amount": { - "display_name": "Amount", - "short_display_name": "SponAmnt", - "type": "string", - "required": false, - "private": true, - "shownifkey": "sponsor_additional", - "shownifval": "Yes, I will sponsor the amount that follows.", - "split": 2 - }, - "circumlegend": { - "type": "legend", - "display_name": "Special Travel Circumstances", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - "travel_circumstances": { - "display_name": "If there are any special circumstances or logistics regarding your travel and/or funding for Flock, please note them here.", - "short_display_name": "travel_circum", - "type": "textarea", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - "flightlegend": { - "type": "legend", - "display_name": "Flights", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - "flights_needed": { - "display_name": "My trip to flock requires air travel", - "type": "radio", - "required": false, - "private": true, - "onchange": "javascript:update_regfee(); javascript:update_estimates();", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "options": [ - "My trip to Flock requires air travel.", - "My trip to Flock does not require air travel." - ], - "split": 2 - }, - "doc_flights": { - "display_name": "", - "type": "documentation", - "html": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "
SatSunMonTueWedThuFriSatSun
Flock
Aug 26Aug 27Aug 28Aug 29Aug 30Aug 31Sep 01Sep 02Sep 03
", - "

First bus departs Logan Airport at 6:15 AM.

", - "

Last bus departs Logan Airport at 11:15 PM.

", - "
", - "

First bus arrives at Logan at 4:30 AM.

", - "

Last bus arrives at Logan at 10:30 PM.

", - "
" - ], - "shownifkey": "flights_needed", - "shownifval": "My trip to Flock requires air travel.", - "split": 2 - }, - "doc_research": { - "type": "documentation", - "display_name": "", - "html": [ - "

Please research round trip flights to Boston's Logan Airport for Flock. Note that there is a 2-hour long", - " bus ride from the airport to the conference site; we have provided a rough schedule of this bus above but ", - "please verify the schedule, particularly if you plan to ", - "ride on a weekend as the schedule may vary based on what we've posted above.

", - "

Plan to arrive in Hyannis, MA by the evening of Monday, August 28 and depart no sooner than 2 PM on Friday, ", - "keeping the bus times and schedule in account." - ], - "shownifkey": "flights_needed", - "shownifval": "My trip to Flock requires air travel.", - "split": 2 - }, - - "flight_homeairport": { - "display_name": "Preferred home airport codes", - "type": "string", - "required": false, - "private": true, - "shownifkey": "flights_needed", - "shownifval": "My trip to Flock requires air travel.", - "message": "Ex. 'PRG', 'BRQ'", - "split": 2 - }, - "flight_price": { - "display_name": "Estimated round-trip airfare (in USD)", - "type": "string", - "required": false, - "private": true, - "shownifkey": "flights_needed", - "shownifval": "My trip to Flock requires air travel.", - "message": "Please provide the amount in US dollars.", - "onchange": "javascript:update_estimates();", - "split": 2 - }, - "doc_research2": { - "type": "documentation", - "display_name": "", - "shownifkey": "flights_needed", - "shownifval": "My trip to Flock requires air travel.", - "html": [ - "

Please make your best guess on your estimated airfare cost based on your research. If you underestimate, ", - "there may not be enough funding for your trip; if you overestimate, other attendees may not receive funding. ", - "We rely on the honesty and integrity of our community members to fill this form out accurately." - ], - "split": 2 - }, - - - "othertransitlegend": { - "type": "legend", - "display_name": "Other Transit Costs", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - "busservice": { - "display_name": "Do you intend to use the Cape Cod bus service from Boston's Logan Airport?", - "type": "radio", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "options": [ - "Yes (+ $47 / roundtrip)", - "No" - ], - "onchange": "javascript:update_estimates();", - "split": 2 - }, - "other_transit": { - "display_name": "Please describe any other transit-related costs you anticipate", - "type": "textarea", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - "total_othertransit": { - "display_name": "Total cost of other estimated transit costs", - "type": "string", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "message": "Please provide the amount in US dollars.", - "onchange": "javascript:update_estimates();", - "split": 2 - }, - "lodginglegend": { - "type": "legend", - "display_name": "Lodging", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "split": 2 - }, - - "lodging_needed": { - "display_name": "I would like lodging to be part of my travel funding request", - "type": "radio", - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "options": [ - "I would like lodging to be part of my travel funding request.", - "I will make my own arrangements for lodging." - ], - "onchange": "javascript:update_estimates();", - "split": 2 - }, - "lodging_calendar": { - "display_name": "", - "type": "documentation", - "html": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "
SatSunMonTueWedThuFriSatSun
Flock
Aug 26Aug 27Aug 28Aug 29Aug 30Aug 31Sep 01Sep 02Sep 03
", - "

First bus departs Logan Airport at 6:15 AM.

", - "

Last bus departs Logan Airport at 11:15 PM.

", - "
", - "

First bus arrives at Logan at 4:30 AM.

", - "

Last bus arrives at Logan at 10:30 PM.

", - "
" - ], - "shownifkey": "lodging_needed", - "shownifval": "I would like lodging to be part of my travel funding request.", - "split": 2 - }, - "doc_lodging": { - "type": "documentation", - "display_name": "", - "shownifkey": "lodging_needed", - "shownifval": "I would like lodging to be part of my travel funding request.", - "html": [ - "

Please indicate below how many nights' lodging you anticipate needing based on your above travel estimate.

", - "

Note: We will fund up to four nights' stay for funded Flock attendees ", - "traveling domestically, and five nights' stay for international", - "travellers, with the exception of travel-related additional lodging requirements.

", - "

All funded attendees will share a double room with an attendee of the same gender. You may request an ", - "exception to this policy by emailing flock-staff@fedoraproject.org, ", - "which is a private address for Flock organizers." - ], - "split": 2 - }, - "lodging_nights": { - "display_name": "How many nights of lodging will you require to attend Flock?", - "type": "select", - "options": [ - "1 night", - "2 nights", - "3 nights", - "4 nights", - "5 nights", - "other" - ], - "required": false, - "private": true, - "shownifkey": "lodging_needed", - "shownifval": "I would like lodging to be part of my travel funding request.", - "onchange": "javascript:update_estimates();", - "split": 2 - }, - "lodging_roommate": { - "display_name": "Do you have a preferred roommate?", - "type": "string", - "required": false, - "private": true, - "shownifkey": "lodging_needed", - "shownifval": "I would like lodging to be part of my travel funding request.", - "message": "Provide name or FAS ID of a mutually-agreed upon roommate.", - "split": 2 - }, - - "doc_estimated_cost": { - "type": "documentation", - "display_name": "", - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "html": [ - "

Estimated costs for funding request

", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "
Estimated round trip airfare: $-- USD
Airfare booking fee: $-- USD
Boston-to-Cape-Cod bus (round-trip): $-- USD
Other transit-related costs: $-- USD
Lodging, (X nights x ($139 + 16.27))/2: $-- USD
Registration fee: $-- USD
", - "

Total: $-- USD

" - ], - "split": 2 - }, - "afford_to_pay": { - "display_name": "If I am funded, I can afford to pay:", - "type": "radio", - "options": [20, 40, 60, 80, 90, "Other"], - "required": false, - "private": true, - "shownifkey": "needassistance", - "shownifval": "Yes, my attendance requires financial assistance.", - "message": "All amounts in US dollars.", - "split": 2 - }, - "afford_to_pay_custom": { - "display_name": "Amount", - "short_display_name": "AffAmnt", - "type": "string", - "required": false, - "private": true, - "shownifkey": "afford_to_pay", - "shownifval": "Other", - "split": 2 - } - - }, - "max_split": 2, - "payment_product_name": "Flock 2017 Registration Fee", - "currencies": { - "USD": { - "symbol": "$", - "min_amount_for_receipt": 20, - "default_amount": 40, - "conversion_rate": 1 - } - }, - "main_currency": "USD", - "paypal_experience_profile": "XP-KZGG-W7U6-E9QN-AHRF", - "desk_word": "something", - - "paypal": { - "api_credentials": { - "mode": "live", - "client_id": "{{ regcfp_paypal_client_id }}", - "client_secret": "{{ regcfp_paypal_client_secret }}" - }, - - "profile": { - "name": "Flock 2017", - "presentation": { - "brand_name": "Fedora Project", - "logo_image": "https://getfedora.org/static/images/fedora_infinity_140x140.png", - "locale_code": "US" - }, - "input_fields": { - "allow_note": true, - "no_shipping": 1, - "address_override": 0 - }, - "flow_config": { - "landing_page_type": "billing", - "bank_txn_pending_url": "http://fedoraproject.org" - } - } - } - } - } -}