https://pulumi.com logo
Title
w

witty-honey-13693

11/09/2021, 3:02 AM
Hi Team Is there any example programs in internet to utilize config system(pulumi.yaml) within pulumi ?
a

abundant-book-94104

11/09/2021, 4:37 AM
Need more info, it's used by the pulimi service, what did you have in mind?
s

sparse-student-54516

11/09/2021, 9:18 AM
Yes…. you can do. I did for rancher like this
import { ClusterConfiguration } from "./config/cluster";

const config = new pulumi.Config();
const networkIpRange = config.require<string>("networkIpRange");
const clusterConfig = config.requireObject<ClusterConfiguration[]>("clusterConfig");
and for this you can do following in your yaml file
config:
  devops-rancher-next:clusterConfig:
  - name: rancher_cluster
    subnetIpRange: 10.0.0.0/28
    zone: eu-central
  devops-rancher-next:networkIpRange: 10.0.0.0/24
w

witty-honey-13693

11/10/2021, 4:38 AM
Thank you FocusWoW This is what iam looking for.
s

sparse-student-54516

11/10/2021, 1:34 PM
Maze karo
😁 1