github.com/SUSE/skuba@v1.4.17/pkg/skuba/actions/cluster/init/constants.go (about) 1 /* 2 * Copyright (c) 2019 SUSE LLC. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 package cluster 19 20 import ( 21 "github.com/SUSE/skuba/pkg/skuba" 22 ) 23 24 type ScaffoldFile struct { 25 Location string 26 Content string 27 DoNotRender bool 28 } 29 30 var ( 31 criScaffoldFiles = map[string][]ScaffoldFile{ 32 "sysconfig": { 33 { 34 Location: skuba.CriDockerDefaultsConfFile(), 35 Content: criDockerDefaultsConf, 36 }, 37 }, 38 "criconfig": { 39 { 40 Location: skuba.CriDefaultsConfFile(), 41 Content: criDefaultsConf, 42 }, 43 }, 44 } 45 46 cloudScaffoldFiles = map[string][]ScaffoldFile{ 47 "openstack": { 48 { 49 Location: skuba.CloudReadmeFile(), 50 Content: cloudReadme, 51 }, 52 { 53 Location: skuba.OpenstackCloudConfTemplateFile(), 54 Content: openstackCloudConfTemplate, 55 }, 56 { 57 Location: skuba.OpenstackReadmeFile(), 58 Content: openstackReadme, 59 }, 60 }, 61 "aws": { 62 { 63 Location: skuba.CloudReadmeFile(), 64 Content: cloudReadme, 65 }, 66 { 67 Location: skuba.AWSReadmeFile(), 68 Content: awsReadme, 69 }, 70 }, 71 "vsphere": { 72 { 73 Location: skuba.CloudReadmeFile(), 74 Content: cloudReadme, 75 }, 76 { 77 Location: skuba.VSphereCloudConfTemplateFile(), 78 Content: vSphereCloudConfTemplate, 79 }, 80 { 81 Location: skuba.VSphereReadmeFile(), 82 Content: vSphereReadme, 83 }, 84 }, 85 } 86 )