Skip to content

Commit

Permalink
#30
Browse files Browse the repository at this point in the history
  • Loading branch information
ufasoli committed Aug 7, 2020
1 parent 4a3a96c commit 43b5e36
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var genCmd = &cobra.Command{
}
ymlContent, err := ioutil.ReadFile(configFile)
if err != nil {
panic(err)
log.Fatal(fmt.Sprintf("Unable to continue as %v cannot be found", configFile))
}
err = yaml.Unmarshal(ymlContent, &platys)
err = yaml.Unmarshal(ymlContent, &platysLegacy)
Expand Down
4 changes: 3 additions & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ By default 'config.yml' is used for the name of the config file, which is create
b, _ := yaml.Marshal(&ymlConfig)
b = addRootIndent(b, 6)

file, err := os.OpenFile("config.yml", os.O_WRONLY, os.ModeAppend)
file, err := os.OpenFile("config.yml", os.O_WRONLY|os.O_CREATE, os.ModeAppend)

if err != nil {
log.Fatal(fmt.Sprintf("Unable to open file %v", err))
Expand All @@ -141,6 +141,8 @@ By default 'config.yml' is used for the name of the config file, which is create
}
}

printBanner()

},
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ func printBanner() {

file := make([]byte, info.Size())
_, err = f.Read(file)
if err != nil {
panic(err)
}

fmt.Println(string(file))
}
14 changes: 8 additions & 6 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
# this file can be used as a template for a custom configuration
# or to know about the different variables available for the generator
platys:
platform-name: 'test'
platform-name: 'default'
stack-image-name: 'trivadis/platys-modern-data-platform'
stack-image-version: '1.6.0'
structure: 'subfolder'
structure: 'flat'
# ===== Global configuation, valid for all or a group of services ========
# Timezone, use a Linux string such as Europe/Zurich or America/New_York
use_timezone: ''
use_timezone: 'true'
# the name of the repository to use for private images, which are not on docker hub (currently only Oracle images)
private_docker_repository_name: 'trivadis'
# ===== Apache Zookeeper ========
ZOOKEEPER_enable: false
private_docker_repository_name: 'true'
# ===== Apache Kafka ========
KAFKA_enable: true

lse
ZOOKEEPER_volume_map_data: false
ZOOKEEPER_nodes: 1 # either 1 or 3
ZOOKEEPER_navigator_enable: false
Expand Down

0 comments on commit 43b5e36

Please sign in to comment.