apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Configure Chromium PWAs via policy #96

Closed apatel762 closed 2 years ago

apatel762 commented 2 years ago

Now that I've got a framework for managing browsers via Ansible using policy (6fcbe593fd099923d6e3f144866734d7282832c5), it would be good to automatically install PWAs.

These are the PWAs to configure:

https://github.com/apatel762/home-infra/blob/9b6f9d80d8ca2ae28f2921e14a2341c14ce1f1e7/workstation/docs/04-ManualSetup.md?plain=1#L102-L111

The policy schema looks like this:

{
 "items": {
  "properties": {
   "create_desktop_shortcut": {
    "type": "boolean"
   },
   "custom_icon": {
    "properties": {
     "hash": {
      "type": "string"
     },
     "url": {
      "type": "string"
     }
    },
    "required": [
     "url",
     "hash"
    ],
    "type": "object"
   },
   "custom_name": {
    "type": "string"
   },
   "default_launch_container": {
    "enum": [
     "tab",
     "window"
    ],
    "type": "string"
   },
   "fallback_app_name": {
    "type": "string"
   },
   "url": {
    "type": "string"
   }
  },
  "required": [
   "url"
  ],
  "type": "object"
 },
 "type": "array"
}

Refs.: