File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -487,12 +487,14 @@ You can find the profiles in your system with `elastic-package profiles list`.
487
487
You can delete profiles with ` elastic-package profiles delete ` .
488
488
489
489
Each profile can have a ` config.yml ` file that allows to persist configuration settings
490
- that apply only to commands using this profile.
490
+ that apply only to commands using this profile. You can find a ` config.yml.example ` that
491
+ you can copy to start.
491
492
492
493
The following settings are available per profile:
493
494
494
495
* ` stack.geoip_dir ` defines a directory with GeoIP databases that can be used by
495
- Elasticsearch in stacks managed by elastic-package.
496
+ Elasticsearch in stacks managed by elastic-package. It is recommended to use
497
+ an absolute path, out of the ` .elastic-package ` directory.
496
498
497
499
## Development
498
500
Original file line number Diff line number Diff line change
1
+ # Directory containing GeoIP databases for stacks managed by elastic-agent.
2
+ # stack.geoip_dir: "/path/to/geoip_dir/"
Original file line number Diff line number Diff line change 5
5
package profile
6
6
7
7
import (
8
+ "embed"
8
9
"errors"
9
10
"fmt"
10
11
"os"
@@ -28,12 +29,20 @@ const (
28
29
DefaultProfile = "default"
29
30
)
30
31
32
+ //go:embed _static
33
+ var static embed.FS
34
+
31
35
var (
36
+ staticSource = resource .NewSourceFS (static )
32
37
profileResources = []resource.Resource {
33
38
& resource.File {
34
39
Path : PackageProfileMetaFile ,
35
40
Content : profileMetadataContent ,
36
41
},
42
+ & resource.File {
43
+ Path : PackageProfileConfigFile + ".example" ,
44
+ Content : staticSource .File ("_static/config.yml.example" ),
45
+ },
37
46
}
38
47
)
39
48
Original file line number Diff line number Diff line change @@ -103,12 +103,14 @@ You can find the profiles in your system with `elastic-package profiles list`.
103
103
You can delete profiles with `elastic-package profiles delete`.
104
104
105
105
Each profile can have a `config.yml` file that allows to persist configuration settings
106
- that apply only to commands using this profile.
106
+ that apply only to commands using this profile. You can find a `config.yml.example` that
107
+ you can copy to start.
107
108
108
109
The following settings are available per profile:
109
110
110
111
* `stack.geoip_dir` defines a directory with GeoIP databases that can be used by
111
- Elasticsearch in stacks managed by elastic-package.
112
+ Elasticsearch in stacks managed by elastic-package. It is recommended to use
113
+ an absolute path, out of the `.elastic-package` directory.
112
114
113
115
## Development
114
116
You can’t perform that action at this time.
0 commit comments