Skip to content

Commit 395a6e2

Browse files
authored
MSP dashboard: Update readme to document all required config values (#24773)
Changes: - Updated the MSP dashboard's readme to include a section about required config values for software features. - Added config values required for software features to the MSP dashboard's docker-compose file. - Added an uploads configuration file that lists the configuration values required for software features.
1 parent 4503b2f commit 395a6e2

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

ee/bulk-operations-dashboard/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ A dashboard to easily manage profiles and scripts across multiple teams on a Fle
1616
This app has two required custom configuration values:
1717

1818
- `sails.config.custom.fleetBaseUrl`: The full URL of your Fleet instance. (e.g., https://fleet.example.com)
19-
2019
- `sails.config.custom.fleetApiToken`: An API token for an API-only user on your Fleet instance.
2120

21+
### Required configuration for software features
22+
23+
If you are using this app to manage software across multiple teams on a Fleet instance, five additional configuration values are required:
24+
25+
- `sails.config.uploads.bucket` The name of an AWS s3 bucket where unassigned software installers will be stored.
26+
- `sails.config.uploads.secret` The secret for the S3 bucket where unassigned software installers will be stored.
27+
- `sails.config.uploads.region` The region the AWS S3 bucket is located.
28+
- `sails.config.uploads.bucketWithPostfix`: The name of the s3 bucket with the directory that the software installers are stored in on appended to it. If the files will be stored in the root directory of the bucket, this value should be identical to the `sails.config.uploads.bucket` value
29+
- `sails.config.uploads.prefixForFileDeletion`: The directory path in the S3 bucket where the software installers will be stored. If the installers will be stored in the root directory, then this value can be set to ' '.
2230

2331

2432
## Running the bulk operations dashboard with Docker.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* File Upload Settings
3+
* (sails.config.uploads)
4+
*
5+
* These options tell Sails where (and how) to store uploaded files.
6+
*
7+
* > This file is mainly useful for configuring how file uploads in your
8+
* > work during development; for example, when lifting on your laptop.
9+
* > For recommended production settings, see `config/env/production.js`
10+
*
11+
* For all available options, see:
12+
* https://sailsjs.com/config/uploads
13+
*/
14+
15+
module.exports.uploads = {
16+
17+
/***************************************************************************
18+
* *
19+
* Sails apps upload and download to the local disk filesystem by default, *
20+
* using a built-in filesystem adapter called `skipper-disk`. This feature *
21+
* is mainly intended for convenience during development since, in *
22+
* production, many apps will opt to use a different approach for storing *
23+
* uploaded files, such as Amazon S3, Azure, or GridFS. *
24+
* *
25+
* Most of the time, the following options should not be changed. *
26+
* (Instead, you might want to have a look at `config/env/production.js`.) *
27+
* *
28+
***************************************************************************/
29+
// bucket: '',// The name of the S3 bucket where software installers will be stored.
30+
// region: '', // The region where the S3 bucket is located.
31+
// secret: '', // The secret for the S3 bucket where unassigned software installers will be stored.
32+
// bucketWithPostfix: '', // This value should be set to the same value as the bucket unless the files are stored in a folder in the S3 bucket. In that case, this value needs to be set to `{bucket name}{folder name}` e.g., unassigned-software-installers/staging
33+
// prefixForFileDeletion: '', // Only required if the software installers are stored in a folder in the S3 bucket. The name of the folder where the software installers are stored in the S3 bucket with a trailing slash. e.g., staging/
34+
35+
};

ee/bulk-operations-dashboard/docker-compose.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ services:
1414
sails_models__migrate: safe
1515
sails_custom__fleetBaseUrl: '' #Add the base url of your Fleet instance: ex: https://fleet.example.com
1616
sails_custom__fleetApiToken: '' # Add the API token of an API-only user [?] Here's how you get one: https://fleetdm.com/docs/using-fleet/fleetctl-cli#get-the-api-token-of-an-api-only-user
17+
sails_uploads__secret: '' # (Required to enable software features) The secret for the S3 bucket where unassigned software installers will be stored.
18+
sails_uploads__bucket: '' # (Required to enable software features) The name of the S3 bucket where software installers will be stored.
19+
sails_uploads__region: '' # (Required to enable software features) The region where the S3 bucket is located.
20+
sails_uploads__bucketWithPostfix: '' # (Required to enable software features) This value should be set to the same value as the bucket unless the files are stored in a folder in the S3 bucket. In that case, this value needs to be set to `{bucket name}{folder name}` e.g., unassigned-software-installers/staging
21+
sails_uploads__prefixForFileDeletion: '' # (Required to enable software features) Only required if the software installers are stored in a folder in the S3 bucket. The name of the folder where the software installers are stored in the S3 bucket with a trailing slash. e.g., staging/
1722

1823
postgres:
1924
image: "postgres:alpine"

0 commit comments

Comments
 (0)