Knox supports such a use case by means of multiple topology files. However, Ambari supports only one single topology file, for the cluster managed by Ambari in which Knox is running as a service. For your requirements it's the best to install Knox stand-alone and configure it manually. It's an easy operation, you can find details here.