Hi Team Is there any example programs in internet ...
# getting-started
w
Hi Team Is there any example programs in internet to utilize config system(pulumi.yaml) within pulumi ?
a
Need more info, it's used by the pulimi service, what did you have in mind?
s
Yes…. you can do. I did for rancher like this
Copy code
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
Copy code
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
Thank you FocusWoW This is what iam looking for.
s
Maze karo
😁 1