You’ll need to use the datamodel.sh/cmd script located in your DOMAIN_HOME/bitools/bin directory.
First step is to use the listconnectionpools parameter to generate a json file which lists your connection pools.
2nd step is to migrate your updated repository to this environment and finally to use the updateconnectiopools parameter of the data model.sh/cmd script to update the connection pools.
The same process can be used to update repository variables.
You can define Initialization Blocks (IB), use static Variables fro Connection Pools and then use these variables directly in RPD.
Hope this helps.