Skip to content

Commit

Permalink
Update cloudformation.yaml - add firefox bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsimcall authored Apr 29, 2024
1 parent 266841e commit 7fe1959
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,61 @@ Resources:
echo 'pref("browser.urlbar.suggest.searches", false);' >> /usr/lib64/firefox/defaults/preferences/all-redhat.js
echo 'pref("keyword.enabled", false);' >> /usr/lib64/firefox/defaults/preferences/all-redhat.js

mkdir -vp /etc/firefox/policies
cat << EOF > /etc/firefox/policies/policies.json
{
"policies": {
"NoDefaultBookmarks": true,
"DisplayBookmarksToolbar": "always",
"DisableProfileImport": true,
"DisableTelemetry": true,
"Bookmarks": [
{
"Title": "Salsa - Registry",
"URL": "https://${SalsaImageRegistryInstance.PrivateDnsName}:8443",
"Favicon": "https://quay.io/static/img/quay_favicon.png",
"Placement": "toolbar"
},
{
"Title": "Salsa - OpenShift",
"URL": "https://console-openshift-console.apps.salsa.lab",
"Favicon": "https://raw.githubusercontent.com/openshift/origin-web-catalog/master/app/assets/img/favicon.ico",
"Placement": "toolbar"
},
{
"Title": "DISCO - Registry",
"URL": "https://${HighSideInstance.PrivateDnsName}:8443",
"Favicon": "https://quay.io/static/img/quay_favicon.png",
"Placement": "toolbar"
},
{
"Title": "DISCO - OpenShift",
"URL": "https://console-openshift-console.apps.disco.lab:8443",
"Favicon": "https://raw.githubusercontent.com/openshift/origin-web-catalog/master/app/assets/img/favicon.ico",
"Placement": "toolbar"
}
],
"Homepage": {
"URL": "file:///home/lab-user/homepage.html",
"Locked": true,
"StartPage": "homepage-locked"
},
"UserMessaging": {
"WhatsNew": true,
"ExtensionRecommendations": true,
"FeatureRecommendations": true,
"UrlbarInterventions": true,
"SkipOnboarding": true,
"MoreFromMozilla": true,
"Locked": true
}
}
}
EOF

touch /home/lab-user/homepage.html
chown lab-user:lab-user /home/lab-user/homepage.html

firewall-cmd --add-service vnc-server --permanent && firewall-cmd --reload || echo "firewalld not installed"

export USER=lab-user #USER=ec2-user
Expand Down

0 comments on commit 7fe1959

Please sign in to comment.